Download the PHP package balpom/symfony-messenger-sqlite without Composer
On this page you can find all versions of the php package balpom/symfony-messenger-sqlite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package symfony-messenger-sqlite
symfony-messenger-sqlite
A simple example showing how to initialize and to use a Symfony Messenger with queues in SQLite database without Doctrine.
It is modified example from https://github.com/balpom/symfony-messenger-sample, which use Doctrine https://github.com/symfony/doctrine-messenger as message transport.
This example use https://github.com/balpom/sql-messenger as transport. It use SQLite database by PDO and without Doctrine.
Everything was tested in Linux.
Requirements
- PHP >= 8.1
Installation
Using composer (recommended)
How to use
Simple test
Open console window. Run the command:
It starts simple Worker, which imitate SMS sending. Now it is waiting for messages to be sent from the queue, which is still empty.
Open another console window. Run the command:
It runs a simple script that adds several messages to the queue. After this, in first console window you may see, how Worker "sending" SMS.
Run the command:
It stop Worker execution.
Advanced test
Open multiple consoles. In each of them, run the command:
It starts many simple Workers, which imitate SMS sending. Now it is waiting for messages to be sent from the queue, which is still empty.
Open one more console window. Run the command:
It runs a simple script that adds many several messages to the queue. After this, in previously opened consoles you may see, how several Workers "sending" SMS.
Run the command:
It stop all Workers executions.
All versions of symfony-messenger-sqlite with dependencies
php-di/php-di Version >=7.0
symfony/messenger Version >=6.4
balpom/sql-messenger Version >=1.0.0
symfony/cache Version >=6.4
symfony/console Version >=6.4
symfony/event-dispatcher Version >=6.4