We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e66430 commit 8236f17Copy full SHA for 8236f17
php/flight/composer.json
@@ -0,0 +1,5 @@
1
+{
2
+ "require": {
3
+ "flightphp/core": "^3.14"
4
+ }
5
+}
php/flight/config.yaml
@@ -0,0 +1,3 @@
+framework:
+ website: docs.flightphp.com
+ version: 3.14
php/flight/public/index.php
@@ -0,0 +1,26 @@
+<?php
+
+require '../vendor/autoload.php';
+Flight::route(
6
+ 'GET /',
7
+ function () {
8
+ echo '';
9
10
+);
11
12
13
+ 'GET /user/@id',
14
+ function ($id) {
15
+ echo $id;
16
17
18
19
20
+ 'POST /user',
21
22
23
24
25
26
+Flight::start();
0 commit comments