Skip to content

Commit 28ce04a

Browse files
authored
Update README.md
1 parent bbd30fd commit 28ce04a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# php-route
22
Simple PHP Fast Routing for Small Web Application or Rest API .
33

4-
#### Features
4+
### Features
55
1. Easy Deployment
66
2. Fastest Routing
77
3. Parameter Supports
@@ -11,5 +11,31 @@ Simple PHP Fast Routing for Small Web Application or Rest API .
1111

1212

1313

14-
#### User Guide
14+
### User Guide
15+
16+
###### Route Structures
17+
18+
`Route::METHOD(ROUTE, CALLBACK);`
19+
20+
21+
22+
That means, a route should be like
23+
24+
```php
25+
Route::get("/", function(){`
26+
27+
echo "This is home page";
28+
29+
`});
30+
```
31+
32+
```php
33+
Route::get("contact", function(){`
34+
35+
echo "This is contact page";
36+
37+
`});`
38+
39+
40+
```
1541

0 commit comments

Comments
 (0)