Download the PHP package mehdibo/paseto-bundle without Composer
On this page you can find all versions of the php package mehdibo/paseto-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mehdibo/paseto-bundle
More information about mehdibo/paseto-bundle
Files in mehdibo/paseto-bundle
Informations about the package paseto-bundle
paseto-bundle
PasetoBundle is a Symfony bundle to integrate Paseto into Symfony applications.
- Installation
- Install bundle
- Configuration
- Usage
- Creating Paseto tokens
- Decoding Paseto tokens
- Commands
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Step 1: Install bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Configuration
Add environment variables to .env
:
You can generate keys using the bundle's command:
Create the configuration file config/packages/mehdibo_paseto.yaml
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Usage
You can view the ExampleController
for a usage example.
Creating Paseto tokens
You can use the bundle's services to create tokens.
From a controller:
Decoding Paseto tokens
You can use the bundle's services to decode tokens
From a controller:
Commands
The bundle provides some commands to help you use Paseto tokens.
All versions of paseto-bundle with dependencies
symfony/framework-bundle Version ^5.2
paragonie/paseto Version ^1.1
symfony/yaml Version ^5.2
symfony/console Version ^5.2