Skip to content

Commit a34b454

Browse files
authored
Merge pull request #8 from Globy-App/6-add-an-example-to-demonstrate-standalone-usage-of-the-library
Added standalone example
2 parents 5dff3b8 + ddc87fc commit a34b454

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/03_standalone.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);
2+
3+
require_once __DIR__ . '/../vendor/autoload.php';
4+
5+
use GlobyApp\HashSensitive\Hasher;
6+
7+
$sensitive_keys = ['api_key'];
8+
9+
$hasher = new Hasher();
10+
var_dump($hasher->scrubKeys(['api_key' => 'mysupersecretapikey'], $sensitive_keys));

0 commit comments

Comments
 (0)