You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or you can download a zip of this repo. Then you would have a basic `index.php` file like the following:
23
23
24
24
```php
25
-
// if installed with composer
26
-
require 'vendor/autoload.php';
27
-
// or if installed manually by zip file
28
-
// require 'flight/Flight.php';
25
+
require 'flight/autoload.php';
29
26
30
27
Flight::route('/', function () {
31
-
echo 'hello world!';
28
+
echo 'hello world!';
32
29
});
33
30
34
31
Flight::start();
@@ -38,17 +35,17 @@ Flight::start();
38
35
39
36
Yes! Flight is fast. It is one of the fastest PHP frameworks available. You can see all the benchmarks at [TechEmpower](https://www.techempower.com/benchmarks/#section=data-r18&hw=ph&test=frameworks)
40
37
41
-
See the benchmark below with some other popular PHP frameworks. This is measured in requests processed within the same timeframe.
38
+
See the benchmark below with some other popular PHP frameworks. This is measured in requests processed within the same timeframe.
42
39
43
40
| Framework | Plaintext Requests| JSON Requests|
44
41
| --------- | ------------ | ------------ |
45
42
| Flight | 190,421 | 182,491 |
46
43
| Yii | 145,749 | 131,434 |
47
-
| Fat-Free | 139,238| 133,952 |
44
+
| Fat-Free | 139,238| 133,952 |
48
45
| Slim | 89,588 | 87,348 |
49
46
| Phalcon | 95,911 | 87,675 |
50
47
| Symfony | 65,053 | 63,237 |
51
-
| Lumen| 40,572 | 39,700 |
48
+
| Lumen| 40,572 | 39,700 |
52
49
| Laravel | 26,657 | 26,901 |
53
50
| CodeIgniter | 20,628 | 19,901 |
54
51
@@ -75,9 +72,10 @@ If you have a current project on v2, you should be able to upgrade to v3 with no
75
72
> [!IMPORTANT]
76
73
> Flight requires `PHP 7.4` or greater.
77
74
78
-
**Note:** PHP 7.4 is supported because at the current time of writing (2024) PHP 7.4 is the default version for some LTS Linux distributions. Forcing a move to PHP >8 would cause a lot of heartburn for those users.
79
-
80
-
The framework also supports PHP >8.
75
+
> [!NOTE]
76
+
> PHP 7.4 is supported because at the current time of writing (2024) PHP 7.4 is the default version for some LTS Linux distributions.
77
+
> Forcing a move to PHP 8 would cause a lot of heartburn for those users.
0 commit comments