Skip to content

Preq is a latency and fault tolerance library for Laravel && Lumen, inspired by Netflix’s Hystrix and upwork/phystrix

License

Notifications You must be signed in to change notification settings

dojiland/preq-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

About Preq

Encapsulate communication of services.

Installation

"require": {
    "per3evere/preq": "^0.1.0@dev"
}

Usage

Create service command file

namespace App\Services;

use Per3evere\Preq\AbstractCommand;

class Example extends AbstractCommand
{
    /**
     * 执行命令
     *
     * @return void
     */
    public function execute()
    {
        return 'executed!';
    }
}

execute it

$command = app('preq')->getCommand(\App\Services\Example::class);
echo $command->execute();

About

Preq is a latency and fault tolerance library for Laravel && Lumen, inspired by Netflix’s Hystrix and upwork/phystrix

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages