Skip to content

Commit a12b730

Browse files
sedwebdevpunkstar
authored andcommitted
Update readme.md (#6)
1 parent 38971ef commit a12b730

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

readme.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ This is a library for easily reading and understanding SSL certificates using PH
1010

1111
## Usage
1212

13+
<?php
14+
require_once __DIR__.'/vendor/autoload.php';
15+
use Punkstar\Ssl\Reader;
16+
1317
$reader = new Reader();
1418
$certificate = $reader->readFromUrl("https://github.com");
1519

16-
printf("Name: %s\n", $certificate->getCertName());
17-
printf("Valid To: %s\n", $certificate->getValidTo()->format('r');
18-
printf("Valid From: %s\n", $certificate->getValidFrom()->format('r');
20+
printf("Name: %s\n", $certificate->certName());
21+
printf("Valid To: %s\n", $certificate->validTo()->format('r'));
22+
printf("Valid From: %s\n", $certificate->validFrom()->format('r'));

0 commit comments

Comments
 (0)