sipsystemgm / parser-command-bundle
Simple parser command
Installs: 12
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:bundle
Requires
- php: >=7.2.5
- composer/package-versions-deprecated: 1.11.99.4
- doctrine/doctrine-bundle: ^2.4
- doctrine/doctrine-migrations-bundle: ^3.2
- doctrine/orm: ^2.10
- sipsystemgm/reader-manager: ^2.2
- symfony/flex: ^1.17
- symfony/messenger: ^5.3
- symfony/proxy-manager-bridge: ^5.3
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/browser-kit: ^5.3
- symfony/css-selector: ^5.3
- symfony/phpunit-bridge: ^5.3
Conflicts
This package is auto-updated.
Last update: 2024-04-26 16:42:40 UTC
README
This is a parser command bundle.The functionality is implemented here to run parse command and run queue manager
This component was developed to demonstrate developing approaches only!!!
Installation
% composer require sipsystemgm/parser-command-bundle
// config/bundles.php return [ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], ... // Insert bundle over there Sip\ParserCommand\ParserCommandBundle::class => ['all' => true] ]
Configuration
# config/packeges/messager.yaml framework: messenger: transports: # insert parameter parser: '%env(MESSENGER_TRANSPORT_DSN)%' routing: # insert parameter 'Sip\ParserCommand\Message\ParserQueueMessage': parser
# .env ###> symfony/messenger ### # Choose one of the transports below ... # uncomment this page and set you parameters # MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages ###< symfony/messenger ### # insert this block and set your parameters ##> memcached ### MEMCACHED_HOST=localhost MEMCACHED_PORT=11211 ##> memcached ###
% php bin/console doctrine:migrations:diff
% php bin/console doctrine:migrations:migrate
Run
# run php bin/console parser --help for more details
% php bin/console parser https://some-host 4 20
% php bin/console messenger:consume parser
Testing
Configurations
% composer require --dev phpunit/phpunit symfony/test-pack
% cp .env.test .env.test.local
% cp phpunit.xml.dist phpunit.xml
insert memcached block in file .env.test.local and set your parameters if they are different
##> memcached ### MEMCACHED_HOST=localhost MEMCACHED_PORT=11211 ##> memcached ##
insert test path directory in file phpunit.xml
<testsuite name="Project Test Suite"> <directory>tests</directory> ... <directory>vendor/sipsystemgm/parser-command-bundle/tests</directory> </testsuite>
Run test
% composer exec phpunit