Skip to content

Commit

Permalink
Merge pull request #8 from Globy-App/6-add-an-example-to-demonstrate-…
Browse files Browse the repository at this point in the history
…standalone-usage-of-the-library

Added standalone example
  • Loading branch information
Sjustein authored Apr 26, 2024
2 parents 5dff3b8 + ddc87fc commit a34b454
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 a34b454

Please sign in to comment.