# The Easy Way

The easiest way to create a Webauthn Server is to use the class `Webauthn\Server`.

```php
<?php

use Webauthn\Server;
use Webauthn\PublicKeyCredentialRpEntity;

$rpEntity = new PublicKeyCredentialRpEntity(
    'Webauthn Server',
    'my.domain.com'
);
$publicKeyCredentialSourceRepository = …; //Your repository here. Must implement Webauthn\PublicKeyCredentialSourceRepository

$server = new Server(
    $rpEntity
    $publicKeyCredentialSourceRepository
);
```

That’s it!

You can now [register a new authenticator](https://webauthn-doc.spomky-labs.com/v3.3/the-webauthn-server/the-easy-way/register-a-new-authentication) or [authenticate your users](https://webauthn-doc.spomky-labs.com/v3.3/the-webauthn-server/the-easy-way/user-authentication).
