Skip to content

Commit 947f999

Browse files
committed
Update README.md
1 parent d1d8af0 commit 947f999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Next, add the following require entry to the <code>composer.json</code> file in
1919
```json
2020
{
2121
"require" : {
22-
"riverside/php-express" : "*"
22+
"riverside/php-express" : "^2.0"
2323
}
2424
}
2525
```
@@ -30,7 +30,7 @@ $ php composer.phar install
3030
### Routing
3131
```php
3232
<?php
33-
$app = new \PhpExpress\Application();
33+
$app = new \Riverside\Express\Application();
3434

3535
$app->get('/', function ($req, $res) {
3636
$res->send('hello world');
@@ -90,10 +90,10 @@ $app->route('/book')
9090
});
9191
```
9292

93-
#### PhpExpress Router
93+
#### Router
9494
```php
9595
<?php
96-
$router = new \PhpExpress\Router($app);
96+
$router = new \Riverside\Express\Router($app);
9797

9898
$router->param('uuid', '[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}');
9999

0 commit comments

Comments
 (0)