PHPackages                             vatson/isolated-callback - 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. vatson/isolated-callback

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

vatson/isolated-callback
========================

Allows to execute a callback in a separate fork

1.0.1(12y ago)42.4k2MITPHPPHP &gt;=5.3.2

Since Dec 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/vatson/isolated-callback)[ Packagist](https://packagist.org/packages/vatson/isolated-callback)[ Docs](https://github.com/vatson/isolated-callback)[ RSS](/packages/vatson-isolated-callback/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Isolated Callback [![Build Status](https://camo.githubusercontent.com/d9360e9f19479199c1b1a11ca5dfddd1a94b1ac15a8a7c4c499a52dd5dad88d9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f766174736f6e2f69736f6c617465642d63616c6c6261636b2e737667)](http://travis-ci.org/vatson/isolated-callback) [![Latest Stable Version](https://camo.githubusercontent.com/dded966f3f4a5f9e72491c23cf15c9546f491f9342ef773b2b27eccb2a4b9e96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766174736f6e2f69736f6c617465642d63616c6c6261636b2e737667)](https://packagist.org/packages/vatson/isolated-callback) [![Total Downloads](https://camo.githubusercontent.com/998722753130e363e13175afe6b5a8030e5aa54ce9f22a533a2323be6d35bc7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766174736f6e2f69736f6c617465642d63616c6c6261636b2e737667)](https://packagist.org/packages/vatson/isolated-callback) [![License](https://camo.githubusercontent.com/3757a20fb54e892461c57e44cdcea0a0dcbd47d9d930cfb29e2f3270af3d9a50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f766174736f6e2f69736f6c617465642d63616c6c6261636b2e737667)](https://raw.githubusercontent.com/vatson/isolated-callback/master/LICENSE)
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#isolated-callback----)

Tiny but still powerful tool to fork it all.

Isolated callback allows to execute any callable statement in a fork and avoid memory leaks.

Installation
------------

[](#installation)

Installation is damn easy, thanks to Composer:

```
composer require vatson/isolated-callback

```

or add the requirements to your composer.json file

```
{
    "require": {
        "vatson/isolated-callback": "*"
    }
}

```

and run `update`

```
composer update vatson/isolated-callback

```

Usage
-----

[](#usage)

Quick and easy. Let's create some anonymous function that generates a lot of data, but the result is a small

```
