pull/226/head
Milan Felix Šulc 2 years ago
parent 0ad36190e0
commit ee7fd3205c
No known key found for this signature in database
GPG Key ID: F85201150685F830

@ -54,7 +54,7 @@ Second file `vercel.json` is pure gold here. Setup your project with configurati
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
}
}
@ -80,8 +80,8 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go!
## 🤗 Features
- **Architecture**: PHP development server (🚀 fast enough)
- **PHP version**: 8.0.17
- **Extensions**: apcu, bcmath, brotli, bz2, calendar, Core, ctype, curl, date, dom, ds, exif, fileinfo, filter, ftp, gettext, hash, iconv, igbinary, imap, intl, json, libxml, lua, mbstring, mongodb, msgpack, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, phalcon, Phar, protobuf, psr, readline, redis, Reflection, runkit7, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, swoole, timecop, tokenizer, uuid, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zlib
- **PHP version**: 8.1.4
- **Extensions**: apcu, bcmath, brotli, bz2, calendar, Core, ctype, curl, date, dom, ds, exif, fileinfo, filter, ftp, geoip, gettext, hash, iconv, igbinary, imap, intl, json, libxml, lua, mbstring, mongodb, msgpack, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, phalcon, Phar, protobuf, readline, redis, Reflection, runkit7, session, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, swoole, timecop, tokenizer, uuid, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zlib, zip
- **Speed**: cold ~250ms / warm ~5ms
- **Memory**: ~90mb
- **Frameworks**: Nette, Symfony, Lumen, Slim, Phalcon
@ -99,7 +99,7 @@ If you need to route everything to index, use `routes` property.
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [
@ -156,6 +156,7 @@ Browse [more examples](https://github.com/juicyfx/vercel-examples). 👀
**Next**
- `vercel dev` (vol2)
**Done**
@ -165,12 +166,13 @@ Browse [more examples](https://github.com/juicyfx/vercel-examples). 👀
- composer.json detection
- zero config
- customize php.ini
- `vercel dev`
- `vercel dev` (vol1)
- typescript codebase
- github workflows (CI)
- PHP 7.4
- composer.json scripts
- PHP 8.0
- PHP 8.1
**Help wanted**
@ -194,19 +196,19 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
},
// Can be list also directly
"api/index.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
},
"api/users.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
},
"api/books.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
}
}
@ -221,7 +223,7 @@ project
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [
@ -241,7 +243,7 @@ Additional function properties are `memory`, `maxDuration`. Learn more about [fu
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0",
"runtime": "vercel-php@0.5.0",
"memory": 3008,
"maxDuration": 60
}
@ -268,7 +270,7 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
}
}
@ -277,7 +279,7 @@ project
```json
{
"require": {
"php": "^7.4",
"php": "^8.1",
"tracy/tracy": "^2.0"
}
}
@ -307,7 +309,7 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
}
}
@ -332,7 +334,7 @@ Runtimes support excluding some files or folders, [take a look at doc](https://v
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.4.0",
"runtime": "vercel-php@0.5.0",
"excludeFiles": "{foo/**,bar/config/*.yaml}",
}
}

@ -1,7 +1,7 @@
{
"name": "vercel-php",
"description": "Vercel PHP runtime",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"main": "./dist/index.js",
"homepage": "https://github.com/juicyfx/vercel-php",

@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0-canary.0"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

@ -1,7 +1,7 @@
{
"version": 2,
"builds": [
{ "src": "index.php", "use": "vercel-php@latest" },
{ "src": "subdirectory/index.php", "use": "vercel-php@latest" }
{ "src": "index.php", "use": "vercel-php@0.5.0" },
{ "src": "subdirectory/index.php", "use": "vercel-php@0.5.0" }
]
}

@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }]
}

@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "env/index.php", "use": "vercel-php@latest" }]
"builds": [{ "src": "env/index.php", "use": "vercel-php@0.5.0" }]
}

@ -3,7 +3,7 @@
"builds": [
{
"src": "index.php",
"use": "vercel-php@latest",
"use": "vercel-php@0.5.0",
"config": { "includeFiles": ["included*.php"] }
}
]

@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }]
}

@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }]
}

@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }]
}

@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }]
}

@ -1,5 +1,5 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }],
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }],
"routes": [{ "src": "/(.*)", "dest": "index.php" }]
}

@ -1,6 +1,6 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@latest" }],
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }],
"build": {
"env": {
"NOW_BUILDER_DEBUG": "1"

@ -1,6 +1,6 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.0.23" }],
"builds": [{ "src": "index.php", "use": "vercel-php@0.5.0" }],
"build": {
"env": {
"COMPOSER": "composer-test.json"

@ -1,7 +1,7 @@
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.0.17"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

@ -1,7 +1,7 @@
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.0.23"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.0.17"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.3.1"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.0.17"
"runtime": "vercel-php@0.5.0"
}
},
"build": {

@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.3.1",
"runtime": "vercel-php@0.5.0",
"excludeFiles": "foo/**"
}
},

@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.3.2-canary.0"
"runtime": "vercel-php@0.5.0"
}
},
"env": {

@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.4.0"
"runtime": "vercel-php@0.5.0"
}
},
"routes": [

Loading…
Cancel
Save