athmarios/yaml-response is a Laravel package for yaml parser for laravel 8..
It currently has 0 GitHub stars and 644 downloads on Packagist (latest version v1.0.2).
Install it with composer require athmarios/yaml-response.
Discover more Laravel packages by athmarios
or browse all Laravel packages to compare alternatives.
Last updated
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.
You can pull in the package via composer:
$ composer require athmarios/yaml-response
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!']);
}
});
The MIT License (MIT). Please see License File for more information.