Download the PHP package suitetea/quick-routes without Composer

On this page you can find all versions of the php package suitetea/quick-routes. 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 quick-routes

Quick Routes for Laravel

Do you ever find yourself declaring the same types of routes over and over again through multiple controllers even though they all do and look basically the same thing/way? That's where Quick Routes comes in.

Turn this:

into this:

*you can specify which routes to use, or simply use all ("*")


The magic happens by setting default routes in an array either through a config file or setting it.

There are multiple ways to set the default routes.

1) The package config found in "app/config/suitetea/quick-routes" (available after publish package config). 2) Calling QuickRoutes::setDefault() and passing in a properly formatted array. 3) Overriding the defaults per register call. There is an option third parameter part of register that you can pass routes to be used instead of the global defaults.


Additionally, you can group routes by using different default sets. Ex:


New in 0.8.0

Fixed a bug where if a HTTP method wasn't specified, the previously declared method was used, resulting in unexpected and unwanted results.

The second parameter in the register method is now optional. If not set, all routes will be used by default. The exception to this is when overriding the default route set for a single instance. In this case, the asterisk ('*') may still be used.

Introduced with method. Using with merges default routes with a set of routes given for a single instance.

For example, this:

is equivalent to this:

Also, you can define a custom uses value, including a Closure:

$image_routes = [ 'img_create' => [ 'pattern' => 'create/image' 'methods' => ['post'], 'uses' => function() { return Redirect::route('image.view'); } ] ];

New in 0.7.0

You can now create multiple methods per route, just pass the methods parameter as an array.

Installation

Via Composer

The default routes array should be in the following format:

Optionally, you can publish the package config file and set default routes there.


All versions of quick-routes with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
laravel/framework Version >=4.0.0
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 suitetea/quick-routes contains the following files

Loading the files please wait ....