Download the PHP package sormagec/roadrunner-laravel without Composer
On this page you can find all versions of the php package sormagec/roadrunner-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sormagec/roadrunner-laravel
More information about sormagec/roadrunner-laravel
Files in sormagec/roadrunner-laravel
Package roadrunner-laravel
Short Description RoadRunner bridge for Laravel applications
License MIT
Informations about the package roadrunner-laravel
Install
Require this package with composer using the following command:
Installed
composer
is required ([how to install composer][getcomposer]).You need to fix the major version of package.
After that you can optionally "publish" default RoadRunner configuration files into your application root directory using next command:
If you wants to disable package service-provider auto discover, just add into your composer.json
next lines:
Usage
This package allows you to use "production ready" worker for RoadRunner, that you can extend as you want.
Out of the box it supports next run parameters:
Name | Description |
---|---|
--(not-)force-https |
Force (or not) https schema usage (eg. for links generation) |
--(not-)reset-db-connections |
Drop (or not) database connections after incoming request serving |
--(not-)reset-redis-connections |
Drop (or not) Redis connections after incoming request serving |
--(not-)refresh-app |
Force refresh application instance after incoming request serving |
--(not-)inject-stats-into-request |
Inject into each Request object macros ::getTimestamp() and ::getAllocatedMemory() that returns timestamp and used allocated memory size |
--not-fix-symfony-file-validation |
Do not fix isValid method in \Symfony\Component\HttpFoundation\File\UploadedFile [#10] |
Parameters should be declared in RR configuration file (eg.
./.rr.local.yml
) inhttp.workers.command
, eg.php ./vendor/bin/rr-worker --some-parameter
Also you can use next environment variables:
Environment name | Description |
---|---|
APP_BASE_PATH |
Base path to the application |
APP_BOOTSTRAP_PATH |
Path to the application bootstrap file (default: /bootstrap/app.php ) |
APP_FORCE_HTTPS |
Force https schema usage (eg. for links generation) |
Additional HTTP-headers
For forcing https
schema usage you can pass special HTTP header FORCE-HTTPS
with any non-empty value.
Extending
You can extend this worker as you wish, for more information - "Look into the sources, Luke!".
Testing
For package testing we use phpunit
framework. Just write into your terminal (installed docker-ce
is required):
All versions of roadrunner-laravel with dependencies
ext-mbstring Version *
illuminate/contracts Version >=5.5.0
illuminate/support Version >=5.5.0
illuminate/http Version >=5.5.0
illuminate/routing Version >=5.5.0
spiral/roadrunner Version ^1.4
symfony/psr-http-message-bridge Version ^1.1