Skip to content

Commit

Permalink
Version: upgrade to 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Feb 22, 2024
1 parent d9b61c4 commit 60f61ab
Show file tree
Hide file tree
Showing 23 changed files with 40 additions and 34 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### [0.7.0] - 2024-02-22

- PHP 8.3
- Use `@libphp/amazon-linux-2-v83: latest`

### [0.6.1] - 2024-01-24

- Update LD_LIBRARY_PATH
Expand Down
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Second file `vercel.json` is pure gold here. Setup your project with configurati
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
}
}
}
Expand All @@ -80,7 +80,7 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go!
## 🤗 Features

- **Architecture**: PHP development server (🚀 fast enough)
- **PHP version**: 8.2 (https://example-php-8-2.vercel.app)
- **PHP version**: 8.3 (https://example-php-8-2.vercel.app)
- **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
Expand All @@ -90,6 +90,7 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go!
## 💯 Versions

- `vercel-php@0.7.0` - Node 18.x / PHP 8.3.x (https://example-php-8-3.vercel.app)
- `vercel-php@0.6.1` - Node 18.x / PHP 8.2.x (https://example-php-8-2.vercel.app)
- `vercel-php@0.5.4` - Node 18.x / PHP 8.1.x (https://example-php-8-1.vercel.app)
- `vercel-php@0.4.3` - Node 18.x / PHP 8.0.x (https://example-php-8-0.vercel.app)
Expand All @@ -106,7 +107,7 @@ If you need to route everything to index, use `routes` property.
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down Expand Up @@ -181,19 +182,19 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
},
// Can be list also directly
"api/index.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
},
"api/users.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
},
"api/books.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
}
}
}
Expand All @@ -208,7 +209,7 @@ project
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand All @@ -228,7 +229,7 @@ Additional function properties are `memory`, `maxDuration`. Learn more about [fu
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.1",
"runtime": "vercel-php@0.7.0",
"memory": 3008,
"maxDuration": 60
}
Expand All @@ -255,7 +256,7 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
}
}
}
Expand Down Expand Up @@ -294,7 +295,7 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.1"
"runtime": "vercel-php@0.7.0"
}
}
}
Expand All @@ -319,7 +320,7 @@ Runtimes support excluding some files or folders, [take a look at doc](https://v
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.6.1",
"runtime": "vercel-php@0.7.0",
"excludeFiles": "{foo/**,bar/config/*.yaml}",
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/examples/00-php/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion test/examples/00-test/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down
4 changes: 2 additions & 2 deletions test/examples/01-cowsay/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"builds": [
{ "src": "index.php", "use": "vercel-php@0.6.0" },
{ "src": "subdirectory/index.php", "use": "vercel-php@0.6.0" }
{ "src": "index.php", "use": "vercel-php@0.7.0" },
{ "src": "subdirectory/index.php", "use": "vercel-php@0.7.0" }
]
}
2 changes: 1 addition & 1 deletion test/examples/02-extensions/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
}
2 changes: 1 addition & 1 deletion test/examples/03-env-vars/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "env/index.php", "use": "vercel-php@0.6.0" }]
"builds": [{ "src": "env/index.php", "use": "vercel-php@0.7.0" }]
}
2 changes: 1 addition & 1 deletion test/examples/04-include-files/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"builds": [
{
"src": "index.php",
"use": "vercel-php@0.6.0",
"use": "vercel-php@0.7.0",
"config": { "includeFiles": ["included*.php"] }
}
]
Expand Down
2 changes: 1 addition & 1 deletion test/examples/05-globals/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
}
2 changes: 1 addition & 1 deletion test/examples/06-setcookie/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
}
2 changes: 1 addition & 1 deletion test/examples/07-function/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
}
2 changes: 1 addition & 1 deletion test/examples/08-opcache/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
}
2 changes: 1 addition & 1 deletion test/examples/09-routes/vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }],
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }],
"routes": [{ "src": "/(.*)", "dest": "index.php" }]
}
2 changes: 1 addition & 1 deletion test/examples/10-composer-builds/vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }],
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }],
"build": {
"env": {
"NOW_BUILDER_DEBUG": "1"
Expand Down
2 changes: 1 addition & 1 deletion test/examples/11-composer-env/vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 2,
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }],
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }],
"build": {
"env": {
"COMPOSER": "composer-test.json"
Expand Down
2 changes: 1 addition & 1 deletion test/examples/12-composer/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion test/examples/13-composer-scripts/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion test/examples/14-folders/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion test/examples/16-php-ini/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion test/examples/17-zero/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"build": {
Expand Down
2 changes: 1 addition & 1 deletion test/examples/18-exclude-files/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.6.0",
"runtime": "vercel-php@0.7.0",
"excludeFiles": "foo/**"
}
},
Expand Down
2 changes: 1 addition & 1 deletion test/examples/19-server-workers/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"env": {
Expand Down
2 changes: 1 addition & 1 deletion test/examples/20-read-files/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.6.0"
"runtime": "vercel-php@0.7.0"
}
},
"routes": [
Expand Down

0 comments on commit 60f61ab

Please sign in to comment.