Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwartpet authored Apr 6, 2021
1 parent 0f2a8fe commit c9987e8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,20 @@ ini_set('max_execution_time', 120); // Maximum execution time in seconds.
Initiating the client:

```php
use Elphin\LEClient;
use Zwartpet\PHPCertificateToolbox\LEClient;

// Initiating a basic LEClient with an array of string e-mail address(es).
$client = new LEClient($email);

// Initiating a LECLient and use the LetsEncrypt staging URL.
$client = new LEClient($email, true);

// Initiating a LEClient and log status messages (LOG_DEBUG for full debugging).
$client = new LEClient($email, true, LEClient::LOG_STATUS);
// Iniitiate client with all properties, optionally create your own storage classes.
$client = new LEClient(
['[email protected]'],
LEClient::LE_PRODUCTION,
new DiagnosticLogger(),
new Client(),
new FilesystemCertificateStorage('cert storage url'),
new FilesystemAccountStorage('account storage url')
);
```

The client will automatically create a new account if there isn't one found. It will forward
Expand Down

0 comments on commit c9987e8

Please sign in to comment.