Skip to content

Commit 751a2df

Browse files
authored
Update README.md
1 parent dc0be6b commit 751a2df

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,26 @@ A simple minimal set of functions provide you the ability to build API & web app
2727

2828
## Installation
2929

30-
Install PHP-Weekend
30+
Install PHP-Weekend with composer
3131

3232
```bash
3333
composer require erdum/php-weekend
3434
```
35+
36+
Or install without composer on older PHP versions just copy the src directory and require the App.php and Router.php
37+
```php
38+
<?php
39+
40+
require(__DIR__ . '/src/App.php');
41+
require(__DIR__ . '/src/Router.php');
42+
43+
use PhpWeekend\Router;
44+
use PhpWeekend\App;
45+
46+
Router::get('/', function() {
47+
App::send_json(array('data' => 'Hello, World!'));
48+
});
49+
```
3550

3651
## Usage
3752

0 commit comments

Comments
 (0)