PHPackages                             athmarios/yaml-response - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. athmarios/yaml-response

ActiveLibrary[API Development](/categories/api)

athmarios/yaml-response
=======================

YAML parser for Laravel 8.

v1.0.2(5y ago)0644MITPHPPHP &gt;=7.0

Since Jul 3Pushed 5y agoCompare

[ Source](https://github.com/MariosTheof/laravel-yaml)[ Packagist](https://packagist.org/packages/athmarios/yaml-response)[ Docs](https://github.com/MariosTheof/laravel-yaml)[ RSS](/packages/athmarios-yaml-response/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Laravel YAML
============

[](#laravel-yaml)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/athmarios/laravel-yaml/master/LICENSE)

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
-------

[](#install)

You can pull in the package via composer:

```
$ composer require athmarios/yaml-response
```

Usage
-----

[](#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
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~855 days

Total

3

Last Release

1892d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

v1.0.2PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fdc468ae496d329d9d9fe002760827be9bf82fd05caaf8d97f0c04c146048da?d=identicon)[MariosTheof](/maintainers/MariosTheof)

---

Top Contributors

[![MariosTheof](https://avatars.githubusercontent.com/u/12546875?v=4)](https://github.com/MariosTheof "MariosTheof (3 commits)")[![mtownsend5512](https://avatars.githubusercontent.com/u/4945553?v=4)](https://github.com/mtownsend5512 "mtownsend5512 (2 commits)")

---

Tags

responseapilaravellaravel 7laravel 8yamlresponseslaravel-yamlresponse-type

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/athmarios-yaml-response/health.svg)

```
[![Health](https://phpackages.com/badges/athmarios-yaml-response/health.svg)](https://phpackages.com/packages/athmarios-yaml-response)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[dugajean/laravel-yaml

YAML parser for Laravel.

144.8k](/packages/dugajean-laravel-yaml)[vinelab/api-manager

Laravel API Manager Package - beatify and unify your responses with the least effort possible.

392.1k](/packages/vinelab-api-manager)[nilportugues/laravel5-json-api-dingo

Laravel5 JSONAPI and Dingo together to build APIs fast

311.5k](/packages/nilportugues-laravel5-json-api-dingo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
