laravel-response-helpers:基于Laravel API的表达响应助手

时间:2021-05-28 16:07:01
【文件属性】:
文件名称:laravel-response-helpers:基于Laravel API的表达响应助手
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-28 16:07:01
PHP Laravel API响应助手 一组帮助程序,用于以更具表现力的方式从您的API返回响应。 安装 只需通过composer将其打包到Laravel API中即可。 composer require mbarlow/laravel-response-helpers 不需要额外的设置。 通过composer.json文件的“自动加载”属性自动加载帮助文件。 用法 2xx成功 200 OK /** * @param \Illuminate\View\View|string|array|null $content * @param array $headers */ return ok ( $ content , $ headers ); 创建了201 /** * @param \Illuminate\View\
【文件预览】:
laravel-response-helpers-master
----composer.json(877B)
----phpunit.xml(392B)
----.github()
--------workflows()
----tests()
--------MyResource.php(432B)
--------helpers.php(489B)
--------ResponsesTest.php(12KB)
--------ContentTest.php(1KB)
----CONTRIBUTING.md(1KB)
----src()
--------helpers.php(7KB)
----LICENSE.md(1KB)
----.gitignore(65B)
----CHANGELOG.md(476B)
----README.md(7KB)

网友评论