Download the PHP package windwork/route without Composer

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

Windwork 路由

Windwork路由的职责:

安装

该组件已包含在Windwork框架中,如果你已安装Windwork框架则可以直接使用。

创建路由实例

1、解析URL

从URL中获取模块、控制器、操作、操作参数,从而可实现动态执行控制器的操作。

不启用模块,所有控制器都放在app/controller文件夹中

结果为

设置useModule参数为true,启用模块,模块控制器类放在app/{模块名}/controller文件夹中

2、生成URL

通过设置路由参数,生成符合路由解析规则的链接。

2.1 使用 \wf\route\Simple::createUrl()方法

2.2 在Windwork框架中使用

为了便于生成URL,我们封装了url()函数。 如果不是独立使用route组件,而是使用Windwork框架开发时,可使用url()函数来生成URL。

example:

3、自定义路由

你可以通过实现 \wf\route\RouteAbstract抽象类约束实现类必须实现的方法及通过定义指定的属性来规范路由参数。 从而让你可以使用官方提供简单路由,也允许你自定义路由,实现按规则解析URL和生成URL。




要了解更多?


All versions of route with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.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 windwork/route contains the following files

Loading the files please wait ....