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
Copy file name to clipboardExpand all lines: README.md
+9-16Lines changed: 9 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@
8
8
9
9
A powerful routing framework and requests/responses handler for PHP
10
10
11
-
WaterPipe is a library which allows you to handle easily HTTP requests and responses with PHP, giving you all the power to build a fully RESTful API, to create a routing framework for your web application, etc...
11
+
WaterPipe is a library which allows you to easily handle HTTP requests and responses with PHP, giving you all the power
12
+
to build a fully RESTful API, to create a routing framework for your web application, etc...
12
13
13
14
## Example
14
15
@@ -28,7 +29,7 @@ $root = new WaterPipe;
28
29
29
30
// Add a new route to the pipe with HTTP GET method (the home page)
30
31
$root->get("/", function (Request $req, Response $res) {
31
-
$res->sendHtml("<b>Welcome to my web app !</b>");
32
+
$res->sendHtml("<b>Welcome to my web app !</b> <ahref=\"/login\">Click here to login</a>");
32
33
});
33
34
34
35
// Add a new route to the pipe with HTTP GET method (the login page)
0 commit comments