PHPackages                             bookfrank/viaduct - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. bookfrank/viaduct

ActiveLibrary[Framework](/categories/framework)

bookfrank/viaduct
=================

Viaduct is a very simple php router, hope to be able to help the php-framework beginners to understand the principle of router better

v2.0.0(9y ago)1511MITPHPPHP &gt;=5.5.9

Since Feb 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/BookFrank/viaduct)[ Packagist](https://packagist.org/packages/bookfrank/viaduct)[ RSS](/packages/bookfrank-viaduct/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (4)Used By (1)

Viaduct 高架桥
-----------

[](#viaduct-高架桥)

Viaduct is a simple but quick PHP router.

> Viaduct is a very simple php router, hope to be able to help the php-framework beginners to understand the principle of router better.

### Features

[](#features)

- Simple
- One-file (only 6 functions)
- Laravel-like routes

### Installation

[](#installation)

1. You can directly run `composer require` to install in your project.

```
composer require bookfrank/viaduct
```

2. Also you can get the viaduct simply require it in your `composer.json` file.

```
"bookfrank/viaduct": "dev-master"

```

You will then need to run `composer install` to download it and have the autoloader updated.

### Usage

[](#usage)

First, create the `routes.php` file.

```
