@@ -9,18 +9,18 @@ Enjoyable & powerful 🐘 PHP builder for ZEIT Now.
9
9
</p >
10
10
11
11
<p align =center >
12
- <a href="https://www.npmjs.com/package/now-php"><img alt="npm" src="https://img.shields.io/npm/dt/now-php?style=flat-square"></a>
13
- <a href="https://www.npmjs.com/package/now-php"><img alt="npm (latest)" src="https://img.shields.io/npm/v/now-php/latest?style=flat-square"></a>
12
+ <a href =" https://www.npmjs.com/package/now-php " ><img alt =" npm " src =" https://img.shields.io/npm/dt/now-php?style=flat-square " ></a >
13
+ <a href =" https://www.npmjs.com/package/now-php " ><img alt =" npm (latest) " src =" https://img.shields.io/npm/v/now-php/latest?style=flat-square " ></a >
14
14
</p >
15
15
16
16
<p align =center ><strong >🏋️♀️ It works with these frameworks and tools.</strong ></p >
17
17
18
18
<p align =center >
19
- <a href="https://github.com/nette"><img src="https://github.com/nette.png" width="128"></a>
20
- <a href="https://github.com/symfony"><img src="https://github.com/symfony.png" width="128"></a>
21
- <a href="https://github.com/illuminate"><img src="https://github.com/illuminate.png" width="128"></a>
22
- <a href="https://github.com/slimphp"><img src="https://github.com/slimphp.png" width="128"></a>
23
- <a href="https://github.com/phalcon"><img src="https://github.com/phalcon.png" width="128"></a>
19
+ <a href =" https://github.com/nette " ><img src =" https://github.com/nette.png " width =" 128 " ></a >
20
+ <a href =" https://github.com/symfony " ><img src =" https://github.com/symfony.png " width =" 128 " ></a >
21
+ <a href =" https://github.com/illuminate " ><img src =" https://github.com/illuminate.png " width =" 128 " ></a >
22
+ <a href =" https://github.com/slimphp " ><img src =" https://github.com/slimphp.png " width =" 128 " ></a >
23
+ <a href =" https://github.com/phalcon " ><img src =" https://github.com/phalcon.png " width =" 128 " ></a >
24
24
</p >
25
25
26
26
-----
@@ -55,16 +55,28 @@ You should define `functions` property in `now.json` and list PHP files directly
55
55
``` json
56
56
{
57
57
"functions" : {
58
- "index.php" : {
59
-
60
- },
61
58
"api/*.php" : {
62
-
59
+
63
60
}
64
61
}
65
62
}
66
63
```
67
64
65
+ If you need to show index page define ` routes ` properly.
66
+
67
+ ``` json
68
+ {
69
+ "functions" : {
70
+ "api/index.php" : {
71
+
72
+ }
73
+ },
74
+ "routes" : [
75
+ { "src" : " /(.*)" , "dest" : " /api/index.php" }
76
+ ]
77
+ }
78
+ ```
79
+
68
80
## 👨💻` now dev `
69
81
70
82
For running ` now dev ` properly, you need to have PHP installed on your computer, [ learn more] ( errors/now-dev-no-local-php.md ) .
0 commit comments