PHPackages                             link/link - 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. link/link

ActiveLibrary[Framework](/categories/framework)

link/link
=========

A PHP router that helps you create webapps and APIs effortlessly

v1.2(11y ago)28233515[1 issues](https://github.com/apsdehal/Link/issues)MITPHPPHP &gt;=5.3.0

Since Jun 7Pushed 9y ago26 watchersCompare

[ Source](https://github.com/apsdehal/Link)[ Packagist](https://packagist.org/packages/link/link)[ Docs](http://github.com/apsdehal/Link)[ RSS](/packages/link-link/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Link
====

[](#link)

A **minimal** router for your php webapps and APIs that effortlessly links all your project. Its fast and to the point.

Features
========

[](#features)

- RESTful routing
- Wildcards for your limitless creativity
- Named routes to help you create links easily
- Self documented, speaks its own legacy
- Before and after routes function support
- Tested with PHP &gt;5.3

HHVM Version
------------

[](#hhvm-version)

HHVM version of Link can be found at  . Thanks to [Andy Hawkins](https://github.com/a904guy) for creating it.

Installation
============

[](#installation)

Composer
--------

[](#composer)

For install from composer just add the following line to your project's composer.json file

```
	"require" : {
    	"link/link" : "dev-master"
    }
```

Then run `php composer.phar install`

Manually
--------

[](#manually)

Run `git clone https://github.com/apsdehal/Link.git` in your project's home directory and include it using

```
	require("Link/src/Link.php");
```

Basics
======

[](#basics)

Simple Routing
--------------

[](#simple-routing)

Routing is too simple with Link, following example supports it:

```
