k-samuel / rr-service
RoadRunner Service
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.4.0
- ext-json: *
- dvelum/cache: ^4.0
- dvelum/db: ^4.0
- foolz/sphinxql-query-builder: ^3.0
- guzzlehttp/guzzle: ^7.3
- laminas/laminas-db: ^2.10
- laminas/laminas-httphandlerrunner: ^1.3
- nyholm/psr7: ^1.4
- nyholm/psr7-server: ^1.0
- php-amqplib/php-amqplib: ^3.0
- psr/container: ^1.1
- psr/log: ^1.1
- spiral/roadrunner: ^2.0
Requires (Dev)
- codacy/coverage: dev-master
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-11-29 06:41:30 UTC
README
RoadRunner services (Beta Version)
Basic core for running high-performance services with PHP RoadRunner
Installation
// install PHP dependencies
composer create-project k-samuel/rr-service
// Get RoadRunner binary
./vendor/bin/rr get
// start Road Runner (default) 127.0.0.1:8083 DEV
./rr serve -d
// start Road Runner (default) на 127.0.0.1:8083 PROD
./rr serve
Setup only production dependencies
composer install --no-dev
Rebuild class map
composer dump-autoload -o
Tests
PHPStan
php ./vendor/bin/phpstan analyse src services tests
PHPUnit
php ./vendor/bin/phpunit
PHP CS
php ./vendor/bin/phpcs --standard=PSR12 ./src ./services ./tests/unit
php ./vendor/bin/phpcs --standard=Squiz --sniffs=Squiz.NamingConventions.ValidVariableName ./src ./services ./tests/unit
PHP CS Fixer
php ./vendor/bin/php-cs-fixer fix ./src
Example requests
http://127.0.0.1:8083/example/api
php console.php /worker