Download the PHP package siokas/laryr without Composer

On this page you can find all versions of the php package siokas/laryr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laryr

Laryr (Laravel Yaml Routes)

Latest Stable Version StyleCI Codacy Badge GitHub license

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:

Note: Tested and works fine on Laravel 5.3

Install

Via Composer

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

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

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

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

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.

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:

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

Options

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

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

Tutorial

The following link contains a nice fully tutorial on how to use the package to your project: https://www.siokas.com/post/laryr/

Libraries

License

The MIT License (MIT). Please see License File for more information.


All versions of laryr with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5.1
php Version ~5.5|~7.0
symfony/yaml Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package siokas/laryr contains the following files

Loading the files please wait ....