PHPackages                             jlzan1314/swoft-entity - 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. jlzan1314/swoft-entity

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

jlzan1314/swoft-entity
======================

swoft 2.0 entity creater

0.1.3(6y ago)121.5k3[1 issues](https://github.com/jlzan1314/swoft-entity/issues)Apache-2.0PHPPHP &gt;=7.1

Since May 13Pushed 6y ago2 watchersCompare

[ Source](https://github.com/jlzan1314/swoft-entity)[ Packagist](https://packagist.org/packages/jlzan1314/swoft-entity)[ RSS](/packages/jlzan1314-swoft-entity/feed)WikiDiscussions master Synced yesterday

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

swoft 2.0 entity creater
========================

[](#swoft-20-entity-creater)

install
-------

[](#install)

```
composer require jlzan1314/swoft-entity

entity:create -d[|--database]  --instance
entity:create -d[|--database]  [table] -instnace
entity:create -d[|--database]  --i[|--include]  --instnace
entity:create -d[|--database]  --i[|--include]  -instnace
entity:create -d[|--database]  --i[|--include]  --instnace
entity:create -d[|--database]  --i[|--include]  -e[|--exclude]  --instance
entity:create -d[|--database]  --i[|--include]  -e[|--exclude]  --instance

-d 数据库
--database 数据库
-i 指定特定的数据表，多表之间用逗号分隔
--include 指定特定的数据表，多表之间用逗号分隔
-e 排除指定的数据表，多表之间用逗号分隔
--exclude 排除指定的数据表，多表之间用逗号分隔
--remove-table-prefix 去除前缀
--entity-file-path 实体路径(必须在以@app开头并且在app目录下存在的目录,否则将会重定向到@app/Model/Entity)
--instance 设置数据库实例，默认default
--extends 设置模型的实体基类
-f 强制覆盖实体文件
```

use
---

[](#use)

./bin/swoft entity:create -d \[database\] -f

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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 ~8 days

Total

4

Last Release

2531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c1ec7f195f0c6bdaf112edbb3f97133e1aa5bb956e33561bc218adf74f38f94?d=identicon)[jlzan1314](/maintainers/jlzan1314)

---

Top Contributors

[![jlzan1314](https://avatars.githubusercontent.com/u/14805969?v=4)](https://github.com/jlzan1314 "jlzan1314 (18 commits)")

---

Tags

entityswoft 2

### Embed Badge

![Health badge](/badges/jlzan1314-swoft-entity/health.svg)

```
[![Health](https://phpackages.com/badges/jlzan1314-swoft-entity/health.svg)](https://phpackages.com/packages/jlzan1314-swoft-entity)
```

###  Alternatives

[shapecode/hidden-entity-type-bundle

Hidden field for Symfony entities

28428.6k1](/packages/shapecode-hidden-entity-type-bundle)[smile/module-custom-entity

Smile - Custom Entity Module

36104.1k5](/packages/smile-module-custom-entity)

PHPackages © 2026

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