<commit_before>Firebase Token Generator for PHP
================================
This library lets you easily generate
[authentication tokens](https://www.firebase.com/docs/security/authentication.html)
for accessing your Firebase securely.

Example
-------
```php
<?php
  include_once "FirebaseToken.php";

  $secret = "0014ae3b1ded44de9d9f6fc60dfd1c64";
  $tokenGen = new FirebaseTokenGenerator($secret);
  $token = $tokenGen->createToken(array("id" => "example"));

  // Get data only readable by auth.id = "example".
  $uri = "https://example.firebaseio.com/.json?auth=".$token;
  var_dump(file_get_content($uri));
?><commit_msg>Depends on php-jwt<commit_after>Firebase Token Generator for PHP
================================
This library lets you easily generate
[authentication tokens](https://www.firebase.com/docs/security/authentication.html)
for accessing your Firebase securely. Depends on [PHP-JWT](https://github.com/firebase/php-jwt).

Example
-------
```php
<?php
  include_once "FirebaseToken.php";

  $secret = "0014ae3b1ded44de9d9f6fc60dfd1c64";
  $tokenGen = new FirebaseTokenGenerator($secret);
  $token = $tokenGen->createToken(array("id" => "example"));

  // Get data only readable by auth.id = "example".
  $uri = "https://example.firebaseio.com/.json?auth=".$token;
  var_dump(file_get_content($uri));
?>
{'fraction_non_alphanumeric': 0.19548872180451127, 'fraction_numerical': 0.02406015037593985, 'mean_word_length': 5.429951690821256, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7331501', 'n_tokens_mistral': 445, 'n_tokens_neox': 417, 'n_words': 87}