PHPackages                             allsilaevex/swoole-connection-pool - 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. allsilaevex/swoole-connection-pool

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

allsilaevex/swoole-connection-pool
==================================

Swoole Connection Pool

v0.5.1(1y ago)94104[2 issues](https://github.com/allsilaevex/swoole-connection-pool/issues)[2 PRs](https://github.com/allsilaevex/swoole-connection-pool/pulls)MITPHPPHP ^8.2

Since Jan 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/allsilaevex/swoole-connection-pool)[ Packagist](https://packagist.org/packages/allsilaevex/swoole-connection-pool)[ RSS](/packages/allsilaevex-swoole-connection-pool/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (13)Versions (10)Used By (0)

Swoole Connection Pool
======================

[](#swoole-connection-pool)

 **A solid, flexible and high-performance Swoole based connection pool.**

 [![PHP Programming Language](https://camo.githubusercontent.com/245432a86c4980bb80d39425561974a0bf97ec460d37f5d262e5322cfc554386/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c6c73696c61657665782f73776f6f6c652d636f6e6e656374696f6e2d706f6f6c2e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d253233383839324246)](https://php.net) [![Download Package](https://camo.githubusercontent.com/09be88e2dff8d78866e94fa47ea62d6f7874d90f390a70491f67568a120fc67b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6c73696c61657665782f73776f6f6c652d636f6e6e656374696f6e2d706f6f6c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d7061636b6167697374)](https://packagist.org/packages/allsilaevex/swoole-connection-pool) [![CI Status](https://github.com/allsilaevex/swoole-connection-pool/actions/workflows/continuous-integration.yaml/badge.svg)](https://github.com/allsilaevex/swoole-connection-pool/actions/workflows/continuous-integration.yaml) [![Codecov Code Coverage](https://camo.githubusercontent.com/3b0a57cc72826b225c16797b5df4047b12d205bc24a53b571823d377dcb5b153/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f616c6c73696c61657665782f73776f6f6c652d636f6e6e656374696f6e2d706f6f6c3f6c6162656c3d636f6465636f76266c6f676f3d636f6465636f76267374796c653d666c61742d737175617265)](https://app.codecov.io/gh/allsilaevex/swoole-connection-pool) [![Psalm Type Coverage](https://camo.githubusercontent.com/801fd1c4c346f6a613e4a027b3c1b5f0569ab80da21f442e35ac26cf375ac6b6/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d687474707325334125324625324673686570686572642e646576253246676974687562253246616c6c73696c616576657825324673776f6f6c652d636f6e6e656374696f6e2d706f6f6c253246636f766572616765)](https://shepherd.dev/github/allsilaevex/swoole-connection-pool) [![PHPStan level](https://camo.githubusercontent.com/7f98ea4145a7b29d0d3ce06064c6750daeecdd2959b29d1f92aeb7cf31c6f957/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e5f6c6576656c2d392d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/) [![Psalm level](https://camo.githubusercontent.com/43aa55db16eafb08b99d7d5a7f5d41a9e7386c6f0c27554386331df2d3566325/68747470733a2f2f73686570686572642e6465762f6769746875622f616c6c73696c61657665782f73776f6f6c652d636f6e6e656374696f6e2d706f6f6c2f6c6576656c2e737667)](https://psalm.dev/) [![License](https://camo.githubusercontent.com/040476febacee4240c35b1180fd15f1cb7e806d39c8b16f2e90e687931f7d3be/68747470733a2f2f706f7365722e707567782e6f72672f616c6c73696c61657665782f73776f6f6c652d636f6e6e656374696f6e2d706f6f6c2f6c6963656e7365)](https://choosealicense.com/licenses/mit/)

⚙️ Installation
---------------

[](#️-installation)

```
composer require allsilaevex/swoole-connection-pool
```

### Requirements

[](#requirements)

- [PHP 8.2.0](https://www.php.net/manual/en/install.php) or later
- [Swoole 5.1.0](https://github.com/swoole/swoole-src) or later

Warning

Pool has not been tested with `swoole.enable_preemptive_scheduler = 1`. Use at your own risk!

⚡️ Quickstart
-------------

[](#️-quickstart)

This example demonstrates the creation of a simple pool of connections to the MySQL database.

```
