Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme heading #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -137,7 +137,7 @@ use in routes:

```

###Named Routes for Reverse Routing
### Named Routes for Reverse Routing

Pass in an array as the first argument, where the first item is your route and the second item is a name with which to reference it later.

Expand All @@ -159,7 +159,7 @@ $router->route('page', ['intro', 456]);

```

###Filters
### Filters

```php

Expand All @@ -176,7 +176,7 @@ $router->get('/user/{name}', function($name){
}, ['before' => 'statsStart', 'after' => 'statsComplete']);
```

###Filter Groups
### Filter Groups

Wrap multiple routes in a route group to apply that filter to every route defined within. You can nest route groups if required.

Expand All @@ -203,7 +203,7 @@ $router->group(['before' => 'auth'], function($router){

});
```
###Prefix Groups
### Prefix Groups

```php

Expand All @@ -225,7 +225,7 @@ $router->group(['prefix' => 'admin'], function($router){
});
```

###Controllers
### Controllers

```php
namespace MyApp;
Expand Down Expand Up @@ -297,7 +297,7 @@ which will look like: `"Allow: HEAD, GET, POST"` etc... depending on the methods
You should catch the exception and use this to send a header to the client: `header($e->getMessage());`


###Dependency Injection
### Dependency Injection

Defining your own dependency resolver is simple and easy. The router will attempt to resolve filters,
and route handlers via the dependency resolver.
Expand Down Expand Up @@ -378,7 +378,7 @@ Performed on a machine with :
* Processor 2.3 GHz Intel Core i7
* Memory 8 GB 1600 MHz DDR3

####Phroute
#### Phroute

This test is to illustrate, in part, the efficiency of the lightweight routing-core, but mostly the lack of degradation of matching speed as the number of routes grows, as compared to conventional libraries.

Expand Down Expand Up @@ -486,7 +486,7 @@ Percentage of the requests served within a certain time (ms)
100% 478 (longest request)
~~~

###For comparison, Laravel 4.0 routing core
### For comparison, Laravel 4.0 routing core

Please note, this is no slight against laravel - it is based on a routing loop, which is why the performance worsens as the number of routes grows

Expand Down