Download the PHP package vaened/laravel-route-moduler without Composer

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

Laravel Route Moduler

Build Status

Separate laravel routes by modules and submodules

Installation

Laravel Route Moduler requires PHP 8.2. To get the latest version, simply require the project using Composer:

Now. Publish the configuration file.

Usage

Once the library is installed, you can start organizing your routes within the /routes/modules folder, which is the default location. If you prefer a different location, you can update it in the route-modules.php configuration file.

Multiple Modules

The route-modules.php configuration file returns an array for a single module setup. However, you can configure as many modules as you need by extending this array.

This structure helps to keep your application’s routes organized, making maintenance and scalability easier.

Configuration

You can customize the behavior of the laravel-route-moduler package through the route-modules.php configuration file. Below are the available options:

path: Specifies where the route configuration files for the module are located. You can set this to a directory or a single file.

Example:
    Load all routes in a directory: 'path' => 'routes/modules'
    Single route file: 'path' => 'routes/users.php'

prefix: Adds a prefix to the module path when the module is created, helping to make modules independent and supplement filename prefixes.

Example: 
    'prefix' => 'admin'

named: If true, the route file name will be used as a prefix for the routes defined in that file.

Example: 
    If the file is users.php, all routes will be prefixed with users.

middleware: Defines the default middleware applied to all routes registered by the module.

Example: 
    'middleware' => ['web', 'auth']

These settings allow you to tailor the package to your application’s specific routing needs.

License

This library is licensed under the MIT License. For more information, please see the license file.


All versions of laravel-route-moduler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^10|^11
vaened/support Version ^4.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 vaened/laravel-route-moduler contains the following files

Loading the files please wait ....