ryannerd / willow
Willow 框架,用于创建 ORM/RESTful API
3.0.2
2021-06-13 22:08 UTC
Requires
- php: ^7.4 | ^8.0
- ext-json: *
- ext-pdo: *
- carbon-cli/carbon-cli: ^1.2.1
- doctrine/dbal: ^3.1.0
- illuminate/database: ^8.46.0
- php-di/php-di: ^6.3.4
- psr/container: ^1.1.1
- psr/http-message: ^1.0.1
- psr/http-server-handler: ^1.0.1
- slim/psr7: ^1.4.0
- slim/slim: ^4.8.0
- vlucas/phpdotenv: ^v5.3.0
Requires (Dev)
- composer/composer: 2.1.3
- consolidation/robo: ^3.0.3
- league/climate: ^3.7.0
- squizlabs/php_codesniffer: 3.*
- twig/twig: ^3.3.2
- 3.x-dev
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.1.1
- 2.1.0
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- 0.0.0
- dev-php-8
- dev-new-rules
- dev-3.x-devx
This package is auto-updated.
Last update: 2024-09-16 19:14:00 UTC
README
Willow 是一种类型的女孩,她美丽、令人惊叹,有点特别,周围的人都喜欢她。大多数 willow 都可以成为你的好朋友,她什么都愿意做,她喜欢任何你抛向她的有趣事物...
对于开发者来说,Willow 是一个用于快速创建基于 CRUD 的 RESTful API 的 有偏见的 PHP 框架。
Willow 是由 Slim 和 Eloquent ORM 结合 Robo 作为你的 婚礼策划师 而组成。
有关说明和入门,请参阅 Willow 框架用户指南
在此情况下,Willow 作为框架表现最佳
📃 要求
- PHP 7.4+ (Willow 3.0+)
- 数据库
- MySQL 5.6+
- SQLite3
- Postgres (未经测试)
- MSSQL (未经测试)
- Composer (为了 Willow 最好地工作,必须全局安装)
💾 安装
要安装 Willow,请运行
composer create-project --ignore-platform-reqs ryannerd/willow:^3 [your-project-name]
cd [your-project-name]
这将创建一个 Willow 项目的骨架。Willow 尝试将 robo 链接。然后您可以使用 Willow (robo) 命令构建您的应用程序。
演示
./willow sample
在浏览器中的结果应该看起来像这样
{ "authenticated": true, "success": true, "status": 200, "data": { "id": "hello-world" }, "missing": [ ], "message": "Sample test", "timestamp": 1556903905 }
Willow (robo) 命令
# Documentation and demo ./willow docs # bring up the documentation web page ./willow list # list all available Willow commands ./willow sample # launch the sample API in a web browser ./willow banner # show the Willow introductory banner # Willow core commands ./willow make # Connects to your database and builds routes, controllers, models, actions, etc. ./willow reset # Resets the project back to factory defaults ./willow eject # Removes the sample artifacts from the project # Database commands ./willow tables # list all the tables in the database ./willow details # Show details (column names and types) of a selected table
贡献
这样做
- 分叉此存储库
- 在您的分叉上做出更改
- 推送 PR
注意:主分支不是 master
,而是 3.x
,您应该将 PR 推送到那里。
特别感谢
Willow 图标由 Freepik 从 www.flaticon.com 制作,并受 CC 3.0 BY 许可。