PHPackages                             sn01615/ssf - 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. [API Development](/categories/api)
4. /
5. sn01615/ssf

AbandonedArchivedProject[API Development](/categories/api)

sn01615/ssf
===========

Simple swoole framework

v0.0.3(5y ago)481MITPHPPHP ^7.1

Since Dec 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sn01615/ssf)[ Packagist](https://packagist.org/packages/sn01615/ssf)[ RSS](/packages/sn01615-ssf/feed)WikiDiscussions main Synced 1mo ago

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

ssf
===

[](#ssf)

Simple swoole framework

install
-------

[](#install)

`composer create-project sn01615/ssf youname dev-main`

Run
---

[](#run)

php index.php

Nginx config
------------

[](#nginx-config)

```
server {
    ...

    location / {
        try_files $uri /sw_proxy_pass;
    }

    location /sw_proxy_pass {
        proxy_http_version 1.1;
        proxy_set_header Connection "keep-alive";
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass http://127.0.0.1:9501$request_uri;
    }

    ...
}

```

Database: Query Builder
-----------------------

[](#database-query-builder)

Model的 mtb 和 tb 属性都是 Illuminate\\Database\\Eloquent\\Builder 实例， 不同的是mtb是使用主库，tb可能查询的从库

查询数据

```
$result = $this->mtb->where('id', $id)->limit(1)->get()->toArray();
```

直接运行SQL(使用db属性的select等方法)

```
$result = $this->db->select("select * from user where id = 1 limit 1");
```

插入数据可以使用`iInsert`方法

```
$newId = $this->iInsert([
    'name' => 123,
]);
```

update数据

```
$affected = $this->mtb->where('id', 1)->update([
    'name' => '哈哈',
]);
```

Model命名说明 `TestModel`会映射到`test`表 `UserModel`会映射到`user`表 `XxCccModel`会映射到`xx_ccc`表，驼峰会转成下划线

参考
--

[](#参考)

数据库 laravel database语法参考

模板引擎 twig语法参考

使用交流
----

[](#使用交流)

[![](https://camo.githubusercontent.com/75b53e353bb9e5064662e185a6d39f4bb88c4e45bd3a1240ddf599525edb6afa/68747470733a2f2f7075622e69647171696d672e636f6d2f7770612f696d616765732f67726f75702e706e67)](https://qm.qq.com/cgi-bin/qm/qr?k=jhc1rElYTsePKHkLuZdTPG_KH1oR1ZAq&jump_from=webapi)

群号码：21890295

论坛：

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fd6cb8950d77fdebcef7c1cd1eac849e5610deddf19aa539f76b371ccaee152?d=identicon)[sn01615](/maintainers/sn01615)

---

Top Contributors

[![sn01615](https://avatars.githubusercontent.com/u/7794149?v=4)](https://github.com/sn01615 "sn01615 (7 commits)")

---

Tags

apifastrouteswooleswoole-framework

### Embed Badge

![Health badge](/badges/sn01615-ssf/health.svg)

```
[![Health](https://phpackages.com/badges/sn01615-ssf/health.svg)](https://phpackages.com/packages/sn01615-ssf)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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