PHPackages                             polonskiy/phproutine - 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. polonskiy/phproutine

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

polonskiy/phproutine
====================

Goroutines in PHP

v0.1.0(11y ago)60122.0k↓25%5MITPHPPHP &gt;=5.3.0

Since Dec 4Pushed 11y ago5 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

PHProutine
==========

[](#phproutine)

PHProutine is a gouroutines emulation in PHP. Inspired by Golang and

Examples
========

[](#examples)

Goroutines
----------

[](#goroutines)

```
// Steve Phillips / elimisteve
// 2013.01.03

package main

import "fmt"

// intDoubler doubles the given int, then sends it through the given channel
func intDoubler(ch chan int, n int) {
    ch
