Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nezamy committed Jan 5, 2017
1 parent d312377 commit c903451
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
@@ -1,2 +1,21 @@
# Route
Route - fast, flexible route for PHP, Enables you to quickly and easily build RESTful web applications

# Usage

## How it working
Routing is done by matching a URL pattern with a callback function.
### index.php
```php
<?php
$route = $app->route;
$route->any('/', function(){
echo 'Hello World';
});

$route->any('/about', function(){
echo 'About';
});

$route->end();
```

0 comments on commit c903451

Please sign in to comment.