We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc0be6b commit 751a2dfCopy full SHA for 751a2df
1 file changed
README.md
@@ -27,11 +27,26 @@ A simple minimal set of functions provide you the ability to build API & web app
27
28
## Installation
29
30
-Install PHP-Weekend
+Install PHP-Weekend with composer
31
32
```bash
33
composer require erdum/php-weekend
34
```
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
+```
50
51
## Usage
52
0 commit comments