PHPackages                             gollumsf/url-tokenizer-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gollumsf/url-tokenizer-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

gollumsf/url-tokenizer-bundle
=============================

Simple url tokenizer

v3.1.3(4y ago)11.9k[1 PRs](https://github.com/GollumSF/url-tokenizer-bundle/pulls)GPL-3.0-or-laterPHPPHP &gt;=7.2CI passing

Since Jan 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/GollumSF/url-tokenizer-bundle)[ Packagist](https://packagist.org/packages/gollumsf/url-tokenizer-bundle)[ Docs](https://github.com/GollumSF/mjml-binary)[ RSS](/packages/gollumsf-url-tokenizer-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (7)Versions (12)Used By (0)

GollumSF Url Tokenizer
======================

[](#gollumsf-url-tokenizer)

[![Build Status](https://github.com/GollumSF/url-tokenizer-bundle/actions/workflows/symfony_6.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/url-tokenizer-bundle/actions)[![Build Status](https://github.com/GollumSF/url-tokenizer-bundle/actions/workflows/symfony_7.4.yml/badge.svg?branch=master)](https://github.com/GollumSF/url-tokenizer-bundle/actions)[![Build Status](https://github.com/GollumSF/url-tokenizer-bundle/actions/workflows/symfony_8.0.yml/badge.svg?branch=master)](https://github.com/GollumSF/url-tokenizer-bundle/actions)

[![Coverage](https://camo.githubusercontent.com/bf41acf0399b350dc1fd527f659ede0ae4892e20d760c26740d48ee41d500dfb/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f476f6c6c756d53462f75726c2d746f6b656e697a65722d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/GollumSF/url-tokenizer-bundle)[![License](https://camo.githubusercontent.com/8aee3ba20a3b7db15563a4561f56120cbbc5a3ecaa45d8bfd45fe7276928134a/68747470733a2f2f706f7365722e707567782e6f72672f676f6c6c756d73662f75726c2d746f6b656e697a65722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/gollumsf/url-tokenizer-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/d1170525967cd2968526ec81f15849d4063939d3a57104f6af6cc55c56d07087/68747470733a2f2f706f7365722e707567782e6f72672f676f6c6c756d73662f75726c2d746f6b656e697a65722d62756e646c652f762f737461626c65)](https://packagist.org/packages/gollumsf/url-tokenizer-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/5de45119098012f3abfc475dcdfee56669a0e29b4c4c41dba2ae73cc5f54b058/68747470733a2f2f706f7365722e707567782e6f72672f676f6c6c756d73662f75726c2d746f6b656e697a65722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/gollumsf/url-tokenizer-bundle)[![Discord](https://camo.githubusercontent.com/e2ea9d7fb91494f17c7c76925e006e2ad2d7586fa54f500364bddda1520eecb1/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3637313734313934343134393537333638373f636f6c6f723d707572706c65266c6162656c3d646973636f7264)](https://discord.gg/xMBc5SQ)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Symfony 6.4 / 7.x / 8.0

Installation:
-------------

[](#installation)

```
composer require gollumsf/url-tokenizer-bundle
```

### config/bundles.php

[](#configbundlesphp)

```
return [
    // [ ... ]
    GollumSF\UrlTokenizerBundle\GollumSFUrlTokenizerBundle::class => ['all' => true],
];
```

### config.yml

[](#configyml)

```
gollum_sf_url_tokenizer:
    secret: Default_S3cret_Must_be_Ch4nge!!! # Default secret key for token MUST BE CHANGE
    default_full_url: false'                 # (optional, default: false) By default tokenise full url or only parameter
    algo: 'sha256'                           # (optional, default: "sha256') Algo for hash token. (must be in list returned by hash_hmac_algos())
    token_query_name: "t"                    # (optional, default: "t") Query token param name for url tokenized
    token_time_query_name: "d"               # (optional, default: "d") Query token time param name for url tokenized
```

Usage
-----

[](#usage)

Tokenize URL
------------

[](#tokenize-url)

```
