Skip to content

Commit 53b506b

Browse files
committed
Updated README.md
1 parent 8ce25bc commit 53b506b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ simple Router class for PHP. with the support of Controllers and Middlewares.
1818
### Features
1919
- Supports GET, POST, PUT, DELETE, OPTIONS, PATCH, HEAD, AJAX and ANY request methods
2020
- Controllers support (Example: HomeController@about)
21-
- Before and after Route Middlewares support (Example: Auth@isLogin)
21+
- Before and after Route Middlewares support
2222
- Static Route Patterns
2323
- Dynamic Route Patterns
2424
- Easy-to-use patterns
@@ -53,11 +53,12 @@ $ composer require izniburak/router
5353
```php
5454
require 'vendor/autoload.php';
5555

56-
$router = new \Buki\Router();
56+
$router = new Buki\Router();
5757

5858
$router->get('/', function() {
5959
return 'Hello World!';
6060
});
61+
$router->get('/controller', 'TestController@main');
6162

6263
$router->run();
6364
```
@@ -90,6 +91,6 @@ Documentation page: [Buki\Router Docs][doc-url]
9091
- [izniburak](https://github.com/izniburak) İzni Burak Demirtaş - creator, maintainer
9192

9293
[mit-url]: http://opensource.org/licenses/MIT
93-
[doc-url]: https://github.com/izniburak/php-router/wiki
94+
[doc-url]: https://github.com/izniburak/php-router/wiki/1.-Home
9495
[author-url]: http://burakdemirtas.org
9596
[twitter-url]: https://twitter.com/izniburak

0 commit comments

Comments
 (0)