forked from lordelph/php-certificate-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|