athmarios/yaml-response
最新稳定版本:v1.0.2
Composer 安装命令:
composer require athmarios/yaml-response
包简介
YAML parser for Laravel 8.
关键字:
README 文档
README
This package will allow your application to determine whether the request wants a YAML response and then also respond with YAML. Made to work for laravel 8.
Install
You can pull in the package via composer:
$ composer require athmarios/yaml-response
Usage
See if the request wants a YAML response and then respond with YAML...
// app/Http/routes.php use Illuminate\Http\Request; Route::get('/some/route', function (Request $request) { // Was this a YAML request? if ($request->wantsYaml()) { // Then let's respond with YAML! response()->yaml(['This is my YAML response!']); } });
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 644
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-08