GithubHelp home page GithubHelp logo

bsormagec / roadrunner-laravel-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avto-dev/roadrunner-laravel

0.0 2.0 0.0 128 KB

RoadRunner ⇆ Laravel bridge

License: MIT License

Makefile 2.36% PHP 97.64%

roadrunner-laravel-1's Introduction

Laravel

RoadRunner ⇆ Laravel bridge

Version Version Build Status Coverage Code quality Downloads count License

Easy way for connecting RoadRunner and Laravel applications.

Install

Require this package with composer using the following command:

$ composer require avto-dev/roadrunner-laravel "^1.4"

Installed composer is required (how to install composer).

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:

$ php ./artisan vendor:publish --provider='AvtoDev\RoadRunnerLaravel\ServiceProvider' --tag=rr-config

If you wants to disable package service-provider auto discover, just add into your composer.json next lines:

{
    "extra": {
        "laravel": {
            "dont-discover": [
                "avto-dev/roadrunner-laravel"
            ]
        }
    }
}

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) in http.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):

$ git clone [email protected]:avto-dev/roadrunner-laravel.git ./roadrunner-laravel && cd $_
$ make install
$ make test

Changes log

Release date Commits since latest release

Changes log can be found here.

Support

Issues Issues

If you will find any package errors, please, make an issue in current repository.

License

This is open-sourced software licensed under the MIT License.

roadrunner-laravel-1's People

Contributors

sormagec avatar densul avatar tarampampam avatar jetexe avatar

Watchers

James Cloos avatar Burak Sormageç avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.