PHPackages                             wydhit/swoole-eloquent - 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. wydhit/swoole-eloquent

ActiveLibrary

wydhit/swoole-eloquent
======================

在swoole中使用laravel的Eloquent

1.0.3(7y ago)211MITPHPPHP &gt;=7.0

Since Sep 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wydhit/swooleEloquent)[ Packagist](https://packagist.org/packages/wydhit/swoole-eloquent)[ RSS](/packages/wydhit-swoole-eloquent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (4)Used By (0)

swooleEloquent
==============

[](#swooleeloquent)

在swoole中是laravel中的eloquent

安装
==

[](#安装)

`composer require wydhit/swoole-eloquent`

配置
==

[](#配置)

`$config=[];//配置参见laravel数据库配置``swooleEloquent\Db::init($config)`

这就完成了数据库的配置

使用
==

[](#使用)

`swooleEloquent\Db::table('user')->limit(10)->get();` table方法之后的参见laravel文档

model
=====

[](#model)

用户model应该继承`swooleEloquent\Model` 而不是Eloquent本身的model

model具体用法参见laravel文档

注意
==

[](#注意)

请求结束时应该 调用 ` swooleEloquent\Db::disConnection();` 释放pdo连接

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Every ~0 days

Total

4

Last Release

2793d ago

### Community

Maintainers

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

---

Top Contributors

[![wydhit](https://avatars.githubusercontent.com/u/17060640?v=4)](https://github.com/wydhit "wydhit (11 commits)")

### Embed Badge

![Health badge](/badges/wydhit-swoole-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/wydhit-swoole-eloquent/health.svg)](https://phpackages.com/packages/wydhit-swoole-eloquent)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)

PHPackages © 2026

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