PHPackages                             sebk/small-swoole-patterns - 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. sebk/small-swoole-patterns

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

sebk/small-swoole-patterns
==========================

1.1.1(3y ago)22291PHPPHP &gt;=8.1

Since Jul 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sebk69/small-swoole-patterns)[ Packagist](https://packagist.org/packages/sebk/small-swoole-patterns)[ RSS](/packages/sebk-small-swoole-patterns/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (1)

small-swoole-patterns
=====================

[](#small-swoole-patterns)

This project provides implementations of async design patterns to open swoole projects.

Migrated
========

[](#migrated)

This lib has been migrated to [framagit](https://framagit.org/small) project.

A new composer package is available at

Future commits will be done on framagit.

This repository will be removed in few month.

Install
-------

[](#install)

Install openswoole :

```
pecl install openswoole

```

Require the package with composer:

```
composer require sebk/small-swoole-patterns

```

Patterns
--------

[](#patterns)

### Array

[](#array)

#### Map

[](#map)

This is an evolution of swoole function \\Coroutine\\map

It is a class to map array on a callback. More verbose than \\Coroutine\\map but allow you waiting later in code.

```
