PHPackages                             luoxiaojun/sw-fw-less-app - 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. [Framework](/categories/framework)
4. /
5. luoxiaojun/sw-fw-less-app

ActiveProject[Framework](/categories/framework)

luoxiaojun/sw-fw-less-app
=========================

Swoole Http Server App

317PHP

Since Jan 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/luoxiaojun1992/sw-fw-less-app)[ Packagist](https://packagist.org/packages/luoxiaojun/sw-fw-less-app)[ RSS](/packages/luoxiaojun-sw-fw-less-app/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

sw-fw-less
==========

[](#sw-fw-less)

> ## Description
>
> [](#description)

Swoole http server without framework

> ## Features
>
> [](#features)

1. Faster Router
2. Router &amp; Global Middleware
3. Model(MySQL &amp; Eleasticsearch、Json Serializable、Array Accessable)
4. Query Builder(MySQL &amp; Elasticsearch)
5. Connection Pool(MySQL、Redis、Experimental AMQP-0-9-1、Experimental HBase)
6. Storage(File、Qiniu、Alioss)
7. Full Coroutine
8. Log(Based on Monolog)
9. Distributed Lock(Based on Redis)
10. Parameter Validator
11. Monitor
12. AMQP-0-9-1
13. Zipkin Trace
14. Dynamic Fault Injection
15. Hot Reload(including biz code、config、router, recommended for dev only)
16. Experimental Grpc(must open http2)
17. Apollo Config Center

> ## Notice
>
> [](#notice)

- Don't include io operation in controller or middleware constructor
- Don't open preemptive scheduler

> ## Requirements
>
> [](#requirements)

- PHP 7.1+
- Swoole 4.2.10+

> ## Installation
>
> [](#installation)

```
composer create-project luoxiaojun/sw-fw-less-app=dev-master sw-fw-less --prefer-dist -vvv
```

> ## Deployment
>
> [](#deployment)

### Nginx

[](#nginx)

Nginx Config Demo(Modify according to your requirements)

```
server {
    listen 80;

    ## Modify according to your requirements
    server_name www.sw-fw-less.dev;

    location / {
        ## Modify according to your requirements
        proxy_pass http://127.0.0.1:9501;
    }
}
```

### Docker

[](#docker)

```
docker run -d -P luoxiaojun1992/sw-fw-less:latest
```

> ## Usage
>
> [](#usage)

Start Server

```
php start.php
```

Demo Api

```
curl -i 'http://127.0.0.1:9501/ping'
```

> ### Grpc Generator
>
> [](#grpc-generator)

```
cd tools && ./generate_grpc.sh path/to/grpc/bins/opt/grpc_php_plugin
```

Generated Files

```
app
├── grpc
│   ├── Demo
│   │   ├── GreetingClient.php       -- php service client
│   │   ├── HelloReply.php           -- request message class generated by protoc
│   │   └── HelloRequest.php         -- response message class generated by protoc
│   └── GPBMetadata
│       └── Demo.php
│
└── services
    ├── GreetingClient.php           -- php service client for sw-fw-less
    ├── GreetingInterface.php        -- php service interface for sw-fw-less
    └── GreetingService.php          -- php server side service for sw-fw-less

```

> ## Performance
>
> [](#performance)

Environment:

- OS: MacOS 10.14.1
- CPU: 2.3 GHz Intel Core i5 4 Cores
- Memory: 16 GB 2133 MHz LPDDR3
- Swoole: 4.2.9
- PHP: 7.2.8
- Redis: 4.0.11
- API:
- Concurrent: 300
- Tool: JMeter 4.0 r1823414

Result: [![Load Testing](./docs/load_test.jpg)](./docs/load_test.jpg)

> ## Document
>
> [](#document)

Please see [document](https://sw-fw-less.gitbook.io).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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/3a9a7ab17addb5818306fe7052bf2fa4c5028284ab1e6c91c26894cf645cbf5f?d=identicon)[luoxiaojun1992](/maintainers/luoxiaojun1992)

---

Top Contributors

[![luoxiaojun1992](https://avatars.githubusercontent.com/u/6905700?v=4)](https://github.com/luoxiaojun1992 "luoxiaojun1992 (63 commits)")

### Embed Badge

![Health badge](/badges/luoxiaojun-sw-fw-less-app/health.svg)

```
[![Health](https://phpackages.com/badges/luoxiaojun-sw-fw-less-app/health.svg)](https://phpackages.com/packages/luoxiaojun-sw-fw-less-app)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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