We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38971ef commit a12b730Copy full SHA for a12b730
readme.md
@@ -10,9 +10,13 @@ This is a library for easily reading and understanding SSL certificates using PH
10
11
## Usage
12
13
+ <?php
14
+ require_once __DIR__.'/vendor/autoload.php';
15
+ use Punkstar\Ssl\Reader;
16
+
17
$reader = new Reader();
18
$certificate = $reader->readFromUrl("https://github.com");
19
- printf("Name: %s\n", $certificate->getCertName());
- printf("Valid To: %s\n", $certificate->getValidTo()->format('r');
- 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