mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 08:12:18 +00:00
[TASK] Updated documentation.
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Simple PHP router
|
# Simple PHP router
|
||||||
Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the Laravel router.
|
Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Add the latest version pf Simple PHP Router to your ```composer.json```
|
Add the latest version of Simple PHP Router to your ```composer.json```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -203,7 +203,8 @@ class Router extends SimpleRouter {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This is a basic example of a helper function for generating urls.
|
#### Helper functions examples
|
||||||
|
**This is a basic example of a helper function for generating urls.**
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use Pecee\SimpleRouter\RouterBase;
|
use Pecee\SimpleRouter\RouterBase;
|
||||||
@@ -212,7 +213,7 @@ function url($controller, $parameters = null, $getParams = null) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This is a basic example for getting the current csrf token
|
**This is a basic example for getting the current csrf token**
|
||||||
|
|
||||||
```php
|
```php
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user