PHPackages                             siokas/laryr - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. siokas/laryr

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

siokas/laryr
============

Helps Laravel users to add routes easily.

0.4(9y ago)319MITPHPPHP ~5.5|~7.0

Since Aug 2Pushed 9y ago3 watchersCompare

[ Source](https://github.com/siokas/laryr)[ Packagist](https://packagist.org/packages/siokas/laryr)[ Docs](https://github.com/siokas/Laryr)[ RSS](/packages/siokas-laryr/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Laryr (Laravel Yaml Routes)
===========================

[](#laryr-laravel-yaml-routes)

[![Latest Stable Version](https://camo.githubusercontent.com/5878bbf1923e480b24d01ce7761e6baad97cc8d03dc9aa71a0721f51304621e1/68747470733a2f2f706f7365722e707567782e6f72672f73696f6b61732f6c617279722f762f737461626c65)](https://packagist.org/packages/siokas/laryr)[![StyleCI](https://camo.githubusercontent.com/9b33654031027c5baa7ce61dc4fe9c43a25c5afb33eeee771fda4404f02801b9/68747470733a2f2f7374796c6563692e696f2f7265706f732f36343732363330382f736869656c64)](https://styleci.io/repos/64726308)[![Codacy Badge](https://camo.githubusercontent.com/713fcef9c51da0c2604e76f4bf5b310206276a06545c3a0d30c9a64dad4432d0/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3633326265633238636361343436396362656237326162643930373537643064)](https://www.codacy.com/app/apostolossiokas/laryr?utm_source=github.com&utm_medium=referral&utm_content=siokas/laryr&utm_campaign=Badge_Grade)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/siokas/laryr/master/LICENSE.md)

This package helps Laravel users to add routes easily. There will be a yaml on your project in which you have the option to specify the routes. Currently the package provides functionality for simple routes and group routes. The plan for a future update is to include more complex routes with where statements.

The package supports functionality for:

- Routes with all methods (get, post, put, patch, delete, resource)
- Route Name
- Middleware
- (new) Route Groups

**Note:** Tested and works fine on Laravel 5.3

Install
-------

[](#install)

Via Composer

```
composer require siokas/laryr
```

After the installation you should regirster the ServiceProvider to the config/app.php file. Add the following line in the **providers** array.

```
Siokas\Laryr\LaryrServiceProvider::class,
```

Now you should publish the unpublished files. Open terminal and type:

```
php artisan vendor:publish
```

This command will publish a yaml file at the root directory of your app, called **routes.yml** and a configuration file in config directory called **laryr.php**.

Usage
-----

[](#usage)

Open the **routes.yml** file and enter your application routes in a collection type.

```
-
  route: test
  method: get
  controller: AppController
  function: index
```

This will create a route which points to the specified Controller and function.

**Note 1:** If you want to change the name and the path of the **routes.yml** file, you have to specify the new path and filename in the config/laryr.php file.

**Note 2:** Nested functions are not supported on the yaml file.

To create a route group you have to add a route with method as **group** and name your route.

```
-
  method: group
  name: groupRoutes
```

Then you have to create a .yml file in the same directory with the **routes.yml** file. This file has to have the same name that you spesified in the previous step. To create that file, open the terminal and type the make artisan command:

```
php artisan make:yaml groupRoutes
```

In this file you can specify the routes you want in the same way.

Options
-------

[](#options)

There are two options in the routes which are listed below:

```
  name: routeName
  middleware: auth
```

For the route groups there are more available options to specify:

```
  name: test
  domain: {account}.app.dev
  prefix: user
  namespace: UsersAccount
```

Tutorial
--------

[](#tutorial)

The following link contains a nice fully tutorial on how to use the package to your project:

Libraries
---------

[](#libraries)

- [Symfony/Yaml](https://github.com/symfony/yaml)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

3616d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5487672?v=4)[Apostolos Siokas](/maintainers/siokas)[@siokas](https://github.com/siokas)

---

Top Contributors

[![siokas](https://avatars.githubusercontent.com/u/5487672?v=4)](https://github.com/siokas "siokas (23 commits)")

---

Tags

laravelroutesyamlSiokasLaryr

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/siokas-laryr/health.svg)

```
[![Health](https://phpackages.com/badges/siokas-laryr/health.svg)](https://phpackages.com/packages/siokas-laryr)
```

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k199.2M1.2k](/packages/laravel-sail)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[pragmarx/yaml

Load your Laravel config files using yaml

1142.8M30](/packages/pragmarx-yaml)[grazulex/laravel-atlas

Laravel Atlas scans your Laravel project to generate a complete, structured map of its internal components — models, controllers, routes, jobs, observers, events, commands, and more — and exports visual or machine-readable representations in formats like Mermaid, Markdown, JSON, or PDF.

192.3k](/packages/grazulex-laravel-atlas)

PHPackages © 2026

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