PHPackages                             fonqing/wing - 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. fonqing/wing

ActiveLibrary[Framework](/categories/framework)

fonqing/wing
============

Fast development depend on thinkphp8

1.0.9(1y ago)1271MITPHPPHP &gt;=8.1

Since Aug 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fonqing/wing)[ Packagist](https://packagist.org/packages/fonqing/wing)[ RSS](/packages/fonqing-wing/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

wing
====

[](#wing)

Fast development library for Thinkphp8

requirements
============

[](#requirements)

- PHP &gt;= 8.1
- Thinkphp &gt;= 8.0

Install
=======

[](#install)

```
composer require fonqing/wing

```

Usage
-----

[](#usage)

- This library is only for thinkphp8.0
- Your controller should extend `\wing\core\BaseController`
- Your model should extend `\wing\core\BaseModel`
- Use `use \wing\core\traits\AutoCrud;` to enable auto CRUD operations for controller
- Use `use \wing\core\traits\Authorize;` to enable login and RBAC check for controller
- In your controller class should implement `setup` method to set current model

Controller example
------------------

[](#controller-example)

```
