Skip to content

A Laravel PHP library for processing code in the background, asynchronously.

Notifications You must be signed in to change notification settings

gluebag/php-laravel-fork

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fork

A Laravel PHP library for processing code in the background.

This package uses a new ability in Laravel to serialize closures, which can then be executed in the command line in the background asynchronously.

Install

Normal install via Composer.

Commands

Register the commands in your app/start/artisan.php file:

Artisan::add(new Travis\Fork\Commands\ForkCommand);

Usage

Just fork the code you want to run in the background:

Fork::run(function() use($foobar)
{
    // do stuff
});

If you want to test for errors, you can run your code synchronously:

Fork::test(function() use($foobar)
{
    // do stuff
});

About

A Laravel PHP library for processing code in the background, asynchronously.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%