Install process is very simple.
$ composer require yokai/security-token-bundle
<?php
// config/bundles.php
return [
// ...
Yokai\SecurityTokenBundle\YokaiSecurityTokenBundle::class => ['all' => true],
];
The bundle requires 2 tables to store your tokens. You need to create these in your project:
Using a doctrine migration (recommended)
$ bin/console doctrine:migrations:diff
You will have a migration file generated with the following tables being created:
CREATE TABLE yokai_security_token ...
CREATE TABLE yokai_security_token_usage ...
Using the doctrine schema update command (not recommended)
$ bin/console doctrine:schema:update --force
« README • Configuration »