Download the PHP package qklin/laravel-auto-router without Composer

On this page you can find all versions of the php package qklin/laravel-auto-router. 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-auto-router

Laravel/Lumen AutoRouter

Laravel/Lumen 注解路由自动加载和中间件自动注入

Table of Contents

  1. How
  2. Usage

How

Install with Composer:

Use simply:

Usage

目前支持的注解

  1. arRouter: 可直接配置方法携带后缀控制中间件
  2. arMethod: POST|GET|PUT|...
  3. arOnlyInisde: 路由必须inside开头

路由自动注入使用

  1. api必须【bapi】前缀。like:HotKeys => hot_keys
  2. 路径包含驼峰目录以【_】分隔。like:HotKeys => hot_keys
  3. 方法包含【.】的目录以【_】分隔。like:V1.0 => v1_0
  4. 方法包含驼峰以【-】分隔。like:getListsO => get-list-o

控制器方法添加注解配置案例

wptRouter注解配置说明

  1. O:Operate 操作 自动注入节流中间件
  2. L:Look 查看 自动移除节流中间件[如果存在]
  3. I:Inside 内网 自动注入内网中间件,且放置最前[如果不存在],自动剔除token中间件
  4. N:NotAuth 无需授权,公开api,自动移除token中间件[如果存在]
  5. V:validate 请求验证,自动移除请求验证中间件[如果不存在]
  6. X:checkSign 请求验签
  7. 如果都不存在,默认根据route.php配置走

配置route.conf

laravel版本在Application可以注入configure方法


All versions of laravel-auto-router with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 qklin/laravel-auto-router contains the following files

Loading the files please wait ....