PHPackages                             tohidplus/paravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tohidplus/paravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tohidplus/paravel
=================

A package to run anonymous functions in parallel

2.0.2(5y ago)1159MITPHP

Since Sep 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tohidplus/paravel)[ Packagist](https://packagist.org/packages/tohidplus/paravel)[ RSS](/packages/tohidplus-paravel/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

[![GitHub issues](https://camo.githubusercontent.com/1300fd259490216075314766584288ac80136dc20dca1f6d6a8f47a7ffd91533/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746f686964706c75732f7061726176656c2e737667)](https://github.com/tohidplus/paravel/issues)[![GitHub stars](https://camo.githubusercontent.com/42f7b5e049ee72fe9123948f385c341da9defbc7162d3a0fbc6bc94b67558bf2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746f686964706c75732f7061726176656c2e737667)](https://github.com/tohidplus/paravel/stargazers)[![Total Downloads](https://camo.githubusercontent.com/b18ed7d4dabfeccb52c4a5863a2593608c7d67f727ccc1204fa7089ce7c76c4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f686964706c75732f7061726176656c2e737667)](https://packagist.org/packages/tohidplus/paravel)[![Code Quality](https://camo.githubusercontent.com/f726b278e8cfbfb42df6eed05df43a233811a072e0250ea11b6dd0f0dcb6c630/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f746f686964706c75732f7061726176656c2f6d6173746572)](https://scrutinizer-ci.com/g/tohidplus/paravel)[![GitHub license](https://camo.githubusercontent.com/7358990aa9d824b0d68ef7800e2eabf6d878d1c3cc03d756bb0245ad2aafdf11/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f686964706c75732f7061726176656c2e737667)](https://github.com/tohidplus/paravel/blob/master/LICENSE.txt)

Parallel and Asynchronous functions in Laravel
==============================================

[](#parallel-and-asynchronous-functions-in-laravel)

A Laravel package to run anonymous functions in parallel or asynchronously without need to install any extension.

### Installation

[](#installation)

```
composer require tohidplus/paravel
```

#### Laravel

[](#laravel)

Publish the config file

```
php artisan vendor:publish --provider="Tohidplus\Paravel\ParavelServiceProvider"
```

#### Lumen

[](#lumen)

Copy the config file `paravel.php` from `vendor/tohidplus/paravel` to `config` directory and configure it in `bootstrap/app.php`

```
$app->configure('paravel');
//
$app->register(Tohidplus\Paravel\ParavelServiceProvider::class);
```

#### Configuration

[](#configuration)

```
return [
    'artisan_path' => env('PARAVEL_ARTISAN_PATH', base_path('artisan')),
];
```

- Make sure the `artisan` path is correct.

### Basic example

[](#basic-example)

```
