Skip to content

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages