Skip to content

Commit

Permalink
Added standalone example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjustein committed Apr 26, 2024
1 parent 5dff3b8 commit ddc87fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/03_standalone.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);

require_once __DIR__ . '/../vendor/autoload.php';

use GlobyApp\HashSensitive\Hasher;

$sensitive_keys = ['api_key'];

$hasher = new Hasher();
var_dump($hasher->scrubKeys(['api_key' => 'mysupersecretapikey'], $sensitive_keys));

0 comments on commit ddc87fc

Please sign in to comment.