Download the PHP package dragon-code/laravel-route-names without Composer

On this page you can find all versions of the php package dragon-code/laravel-route-names. 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 laravel-route-names

Auto Route Names for Laravel

the dragon code route names

Stable Version Unstable Version Total Downloads Github Workflow Status

Installation

To get the latest version of Laravel Route Names, simply require the project using Composer:

Next, replace Illuminate\Foundation\Application with DragonCode\LaravelRouteNames\Application in the bootstrap/app.php file.

You can now list the routes, for example by calling the php artisan route:list command or by using the dragon-code/pretty-routes package.

Using

This is all. Now you don't have to specify route names. Now the route names will be generated automatically based on the final URL of your project.

All previously specified route names in the application will be ignored.

Compatible with all package solutions for expanding the list of routes.

Also, Laravel Idea support coming soon.

Since route names are generated at the time they are received, we recommend using route caching in production:

Base Routes

Method Url Name Helper
GET, HEAD / index route('index')
POST / store route('store')
PUT / update route('update')
DELETE / destroy route('destroy')
PATCH / patch route('patch')
OPTIONS / options route('options')
GET, HEAD /pages pages.index route('pages.index')
POST /pages pages.store route('pages.store')
PUT /pages/123 pages.update route('pages.update')
DELETE /pages/123 pages.destroy route('pages.destroy')
PATCH /pages/123 pages.patch route('pages.patch')
OPTIONS /pages/123 pages.options route('pages.options')

Resource Routes

Method Url Name Helper
GET, HEAD /authors/123/photos authors.photos.index route('authors.photos.index')
GET, HEAD /authors/123/photos/create authors.photos.create route('authors.photos.create')
POST /authors/123/photos authors.photos.store route('authors.photos.store')
GET /authors/123/photos/{photo} authors.photos.show route('authors.photos.show')
GET /authors/123/photos/{photo}/edit authors.photos.edit route('authors.photos.edit')
PUT /authors/123/photos/{photo} authors.photos.update route('authors.photos.update')
PATCH /authors/123/photos/{photo} authors.photos.patch route('authors.photos.patch')
DELETE /authors/123/photos/{photo} authors.photos.destroy route('authors.photos.destroy')

API Resource Routes

Method Url Name Helper
GET, HEAD /authors/123/photos authors.photos.index route('authors.photos.index')
POST /authors/123/photos authors.photos.store route('authors.photos.store')
GET /authors/123/photos/{photo} authors.photos.show route('authors.photos.show')
PUT /authors/123/photos/{photo} authors.photos.update route('authors.photos.update')
PATCH /authors/123/photos/{photo} authors.photos.patch route('authors.photos.patch')
DELETE /authors/123/photos/{photo} authors.photos.destroy route('authors.photos.destroy')

List of exclusions

By publishing a configuration file with the artisan command, you can explicitly specify a mask of route names that do not need to be translated:

Exceptions

Result

Before:

After:

License

This package is licensed under the MIT License.


All versions of laravel-route-names with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
fig/http-message-util Version ^1.1
illuminate/routing Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.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 dragon-code/laravel-route-names contains the following files

Loading the files please wait ....