PHPackages                             knik/flarum-s - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. knik/flarum-s

ActiveLibrary[HTTP &amp; Networking](/categories/http)

knik/flarum-s
=============

Asynchronous PHP web servers for Flarum.

0102PHP

Since Mar 28Pushed 6y agoCompare

[ Source](https://github.com/et-nik/flarum-s)[ Packagist](https://packagist.org/packages/knik/flarum-s)[ RSS](/packages/knik-flarum-s/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/66b9e3d6f61beeef2e7ae3a2cb8e4610cb7beeee9c91beba7475bcdfa923ceb7/68747470733a2f2f666c6172756d2e6f72672f696d672f6c6f676f2e706e67)](https://camo.githubusercontent.com/66b9e3d6f61beeef2e7ae3a2cb8e4610cb7beeee9c91beba7475bcdfa923ceb7/68747470733a2f2f666c6172756d2e6f72672f696d672f6c6f676f2e706e67)

[![Build Status](https://camo.githubusercontent.com/3d65cd29123394c48b327fc6f94fc5abc6aff24189753d6d0c425a05d1a43948/68747470733a2f2f7472617669732d63692e6f72672f666c6172756d2f636f72652e737667)](https://travis-ci.org/flarum/core)[![Total Downloads](https://camo.githubusercontent.com/d581c10da3f8a0311da73aca56fecd7d01123294bb64c351a29ceb43357fd4fb/68747470733a2f2f706f7365722e707567782e6f72672f666c6172756d2f636f72652f642f746f74616c2e737667)](https://packagist.org/packages/flarum/core)[![Latest Stable Version](https://camo.githubusercontent.com/3c7e3c769e93f3c22f9c587142b202dd55f8bbe4b6248042958441d5b211f777/68747470733a2f2f706f7365722e707567782e6f72672f666c6172756d2f636f72652f762f737461626c652e737667)](https://packagist.org/packages/flarum/core)[![License](https://camo.githubusercontent.com/4839a7cfe5f27391d90c1e4c4bb661e34e435795a465b872877e75fe4c0e228a/68747470733a2f2f706f7365722e707567782e6f72672f666c6172756d2f636f72652f6c6963656e73652e737667)](https://packagist.org/packages/flarum/core)

About Flarum
------------

[](#about-flarum)

**[Flarum](https://flarum.org/) is a delightfully simple discussion platform for your website.** It's fast and easy to use, with all the features you need to run a successful community. It is designed to be:

- **Fast and simple.** No clutter, no bloat, no complex dependencies. Flarum is built with PHP so it’s quick and easy to deploy. The interface is powered by Mithril, a performant JavaScript framework with a tiny footprint.
- **Beautiful and responsive.** This is forum software for humans. Flarum is carefully designed to be consistent and intuitive across platforms, out-of-the-box.
- **Powerful and extensible.** Customize, extend, and integrate Flarum to suit your community. Flarum’s architecture is amazingly flexible, with a powerful Extension API.

[![screenshot](https://camo.githubusercontent.com/766a8cbf781cb405fd94a3f408593f795ec578a32fe734a0195f43ee73b15a3a/68747470733a2f2f666c6172756d2e6f72672f696d672f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/766a8cbf781cb405fd94a3f408593f795ec578a32fe734a0195f43ee73b15a3a/68747470733a2f2f666c6172756d2e6f72672f696d672f73637265656e73686f742e706e67)

Requirements
------------

[](#requirements)

DependencyRequirement[PHP](https://secure.php.net/manual/en/install.php)`>= 7.2` `Recommend PHP7+`[Swoole](https://www.swoole.co.uk/)`>= 2.0.12` `No longer support PHP5 since 2.0.12` `Recommend 4.3+`Installation (Flarum + Swoole)
------------------------------

[](#installation-flarum--swoole)

You must have SSH access to a server with **PHP 7.2+** and **MySQL 5.6+**, and install [Composer](https://getcomposer.org/).

Install Swoole

```
$ pecl install swoole
```

Install Project Flarum-S

```
$ composer create-project flarum/flarum flarum-s --stability=beta

```

Install Http Server Swoole for Flarum-S

```
$ composer require knik/flarum-s:dev-master
$ composer update -o
$ cp -rf vendor/knik/flarum-s/bin/ bin/
$ chmod 755 bin/flarum-s
```

Config ip, port

```
Change `bin/config.php`: listen_ip, listen_port

```

Commands Service

CommandDescription`start`Start Http Server Flarum-S`stop`stop`restart`restart`reload`reloadUsage
-----

[](#usage)

```
$ cd bin/
$ ./flarum-s service start
```

```
        ___________.__
        \_   _____/|  | _____ _______ __ __  _____
         |    __)  |  | \__  \_  __ \  |  \/     \
         |     \   |  |__/ __ \|  | \/  |  /  Y Y  \
         \___  /   |____(____  /__|  |____/|__|_|  /
             \/              \/                  \/

Server         Name:      flarum-httpd
System         Name:      linux
PHP            Version:   7.3.3-1+ubuntu18.04.1+deb.sury.org+1
Swoole         Version:   4.3.1
Coroutine      Mode:      enabled
Listen         Addr:      127.0.0.1
Listen         Port:      9501
Reactor        Num:       4
Worker         Num:       4

```

Open your browser to  to validate you're up and running.

Benchmark
---------

[](#benchmark)

using 4 CPUs / 1 GB Memory / PHP 7.3 / Ubuntu 18.04.4 x64

Benchmarking Tool: [wrk](https://github.com/wg/wrk)

```
wrk -t4 -c100 http://your.app

```

### PHP7.3

[](#php73)

```
$ cd public/
$ php -S 127.0.0.1:8080
$ wrk -t2 -c50 -d5s http://localhost:8080

Running 5s test @ http://localhost:8080
  2 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.07s   526.15ms   1.91s    56.52%
    Req/Sec     8.04      4.20    20.00     80.36%
  62 requests in 5.02s, 326.41KB read
  Socket errors: connect 0, read 62, write 0, timeout 39
Requests/sec:     10.35
Transfer/sec:     65.02KB

```

### Swoole HTTP Server

[](#swoole-http-server)

```
wrk -t2 -c50 -d5s http://localhost:9501

Running 10s test @ http://localhost:9501
  2 threads and 50 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   807.75ms  225.06ms   1.91s    74.43%
    Req/Sec    27.83     17.37    70.00     51.72%
  266 requests in 5.11s, 1.81MB read
  Socket errors: connect 0, read 0, write 0, timeout 4
  Non-2xx or 3xx responses: 9
Requests/sec:     52.05
Transfer/sec:    362.00KB

```

Conclustion

4X time

\[Code For Fun\]

License
-------

[](#license)

Flarum is open-source software licensed under the [MIT License](https://github.com/flarum/flarum/blob/master/LICENSE).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7469ba20a83b18557bde2a09acd47b9b0ee91657f73b35789c5367fbe94dd19?d=identicon)[knik](/maintainers/knik)

---

Top Contributors

[![et-nik](https://avatars.githubusercontent.com/u/3670640?v=4)](https://github.com/et-nik "et-nik (4 commits)")

### Embed Badge

![Health badge](/badges/knik-flarum-s/health.svg)

```
[![Health](https://phpackages.com/badges/knik-flarum-s/health.svg)](https://phpackages.com/packages/knik-flarum-s)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M316](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
