Installation
tilttek/luck-tokens-bundleRequirements
- PHP 8.5 or later, Symfony 8.2, Doctrine DBAL 4.5.
tilttek/luck-tokens, the tokens themselves, andphil/resource, whose references name the tables and the holders.psr/event-dispatcher; FrameworkBundle provides the dispatcher, and itsclockservice dates the entries.- Optional:
doctrine/ormfor the schema listener,symfony/lockfor the locks,symfony/security-bundlefor the access through the security voters,phil/privacy-bundlefor the erasure of a member.
Enabling the bundle
composer require tilttek/luck-tokens-bundle
// config/bundles.php
return [
// …
Tilttek\LuckTokensBundle\TilttekLuckTokensBundle::class => ['all' => true],
];
Configure the tables (Configuration), then let Doctrine write the migration of the tables:
bin/console doctrine:migrations:diff
bin/console doctrine:migrations:migrate
Without the ORM, create the tables from LuckTokensTables::tables() in a migration of your own: it gives them for the
platform of the connection, as The ledgers in the database describes.