skore-labs / laravel-json-api
此包已废弃,不再维护。未建议替代包。
在Laravel中集成JSON:API资源
3.2.8
2022-08-26 10:42 UTC
Requires
- php: ^7.2|^8.0|^8.1
- illuminate/http: ^6.0|^8.0|^9.0
- illuminate/support: ^6.0|^8.0|^9.0
Requires (Dev)
- ext-json: *
- nunomaduro/larastan: ^1.0
- orchestra/testbench: ^4.0|^6.0|^7.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^7.0|^9.0
Suggests
- hammerstone/fast-paginate: Improves jsonPaginate method performance (SQL database query pagination)
- skorelabs/laravel-query-builder: Allows to include data on your API responses following the JSON:API
README
本包将被以下包取代: https://github.com/open-southeners/laravel-apiable
Laravel JSON:API
在Laravel中集成JSON:API资源。
特性
- 与所有Laravel LTS支持的版本兼容并经过测试(查看这里)
- 使用纯内置模型方法和属性进行完整格式化。
- 使用预加载处理关系和嵌套。
- “开箱即用”权限,授权每个资源视图或资源列表。
- 自动隐藏不允许的属性,如
user_id
或post_id
。 - 内置自己的测试工具,与Laravel的测试工具一起使用,使集成测试更容易。
文档
鸣谢
- Ruben Robles (@d8vjork)
- Skore (https://www.getskore.com/)
- 以及所有贡献者