Skip to content

Commit 5cefd55

Browse files
committed
Version: upgrade to 0.7.0
1 parent 8801136 commit 5cefd55

File tree

24 files changed

+41
-35
lines changed

24 files changed

+41
-35
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
### [0.7.0] - 2024-02-22
4+
5+
- PHP 8.3
6+
- Use `@libphp/amazon-linux-2-v83: latest`
7+
38
### [0.6.1] - 2024-01-24
49

510
- Update LD_LIBRARY_PATH

README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Second file `vercel.json` is pure gold here. Setup your project with configurati
5454
{
5555
"functions": {
5656
"api/*.php": {
57-
"runtime": "vercel-php@0.6.1"
57+
"runtime": "vercel-php@0.7.0"
5858
}
5959
}
6060
}
@@ -80,7 +80,7 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go!
8080
## 🤗 Features
8181

8282
- **Architecture**: PHP development server (🚀 fast enough)
83-
- **PHP version**: 8.2 (https://example-php-8-2.vercel.app)
83+
- **PHP version**: 8.3 (https://example-php-8-2.vercel.app)
8484
- **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
8585
- **Speed**: cold ~250ms / warm ~5ms
8686
- **Memory**: ~90mb
@@ -90,6 +90,7 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go!
9090
9191
## 💯 Versions
9292

93+
- `[email protected]` - Node 18.x / PHP 8.3.x (https://example-php-8-3.vercel.app)
9394
- `[email protected]` - Node 18.x / PHP 8.2.x (https://example-php-8-2.vercel.app)
9495
- `[email protected]` - Node 18.x / PHP 8.1.x (https://example-php-8-1.vercel.app)
9596
- `[email protected]` - Node 18.x / PHP 8.0.x (https://example-php-8-0.vercel.app)
@@ -106,7 +107,7 @@ If you need to route everything to index, use `routes` property.
106107
{
107108
"functions": {
108109
"api/*.php": {
109-
"runtime": "vercel-php@0.6.1"
110+
"runtime": "vercel-php@0.7.0"
110111
}
111112
},
112113
"routes": [
@@ -181,19 +182,19 @@ project
181182
{
182183
"functions": {
183184
"api/*.php": {
184-
"runtime": "vercel-php@0.6.1"
185+
"runtime": "vercel-php@0.7.0"
185186
},
186187
187188
// Can be list also directly
188189
189190
"api/index.php": {
190-
"runtime": "vercel-php@0.6.1"
191+
"runtime": "vercel-php@0.7.0"
191192
},
192193
"api/users.php": {
193-
"runtime": "vercel-php@0.6.1"
194+
"runtime": "vercel-php@0.7.0"
194195
},
195196
"api/books.php": {
196-
"runtime": "vercel-php@0.6.1"
197+
"runtime": "vercel-php@0.7.0"
197198
}
198199
}
199200
}
@@ -208,7 +209,7 @@ project
208209
{
209210
"functions": {
210211
"api/index.php": {
211-
"runtime": "vercel-php@0.6.1"
212+
"runtime": "vercel-php@0.7.0"
212213
}
213214
},
214215
"routes": [
@@ -228,7 +229,7 @@ Additional function properties are `memory`, `maxDuration`. Learn more about [fu
228229
{
229230
"functions": {
230231
"api/*.php": {
231-
"runtime": "vercel-php@0.6.1",
232+
"runtime": "vercel-php@0.7.0",
232233
"memory": 3008,
233234
"maxDuration": 60
234235
}
@@ -255,7 +256,7 @@ project
255256
{
256257
"functions": {
257258
"api/*.php": {
258-
"runtime": "vercel-php@0.6.1"
259+
"runtime": "vercel-php@0.7.0"
259260
}
260261
}
261262
}
@@ -294,7 +295,7 @@ project
294295
{
295296
"functions": {
296297
"api/*.php": {
297-
"runtime": "vercel-php@0.6.1"
298+
"runtime": "vercel-php@0.7.0"
298299
}
299300
}
300301
}
@@ -319,7 +320,7 @@ Runtimes support excluding some files or folders, [take a look at doc](https://v
319320
{
320321
"functions": {
321322
"api/**/*.php": {
322-
"runtime": "vercel-php@0.6.1",
323+
"runtime": "vercel-php@0.7.0",
323324
"excludeFiles": "{foo/**,bar/config/*.yaml}",
324325
}
325326
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vercel-php",
33
"description": "Vercel PHP runtime",
4-
"version": "0.6.1",
4+
"version": "0.7.0",
55
"license": "MIT",
66
"main": "./dist/index.js",
77
"homepage": "https://github.com/juicyfx/vercel-php",

test/examples/00-php/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

test/examples/00-test/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

test/examples/01-cowsay/vercel.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": 2,
33
"builds": [
4-
{ "src": "index.php", "use": "vercel-php@0.6.0" },
5-
{ "src": "subdirectory/index.php", "use": "vercel-php@0.6.0" }
4+
{ "src": "index.php", "use": "vercel-php@0.7.0" },
5+
{ "src": "subdirectory/index.php", "use": "vercel-php@0.7.0" }
66
]
77
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
44
}

test/examples/03-env-vars/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "env/index.php", "use": "vercel-php@0.6.0" }]
3+
"builds": [{ "src": "env/index.php", "use": "vercel-php@0.7.0" }]
44
}

test/examples/04-include-files/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"builds": [
44
{
55
"src": "index.php",
6-
"use": "vercel-php@0.6.0",
6+
"use": "vercel-php@0.7.0",
77
"config": { "includeFiles": ["included*.php"] }
88
}
99
]

test/examples/05-globals/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
44
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
44
}

test/examples/07-function/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
44
}

test/examples/08-opcache/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }]
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }]
44
}

test/examples/09-routes/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }],
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }],
44
"routes": [{ "src": "/(.*)", "dest": "index.php" }]
55
}

test/examples/10-composer-builds/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }],
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }],
44
"build": {
55
"env": {
66
"NOW_BUILDER_DEBUG": "1"

test/examples/11-composer-env/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": 2,
3-
"builds": [{ "src": "index.php", "use": "vercel-php@0.6.0" }],
3+
"builds": [{ "src": "index.php", "use": "vercel-php@0.7.0" }],
44
"build": {
55
"env": {
66
"COMPOSER": "composer-test.json"

test/examples/12-composer/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/index.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

test/examples/13-composer-scripts/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/index.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

test/examples/14-folders/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

test/examples/16-php-ini/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

test/examples/17-zero/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"build": {

test/examples/18-exclude-files/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/**/*.php": {
4-
"runtime": "vercel-php@0.6.0",
4+
"runtime": "vercel-php@0.7.0",
55
"excludeFiles": "foo/**"
66
}
77
},

test/examples/19-server-workers/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"env": {

test/examples/20-read-files/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"functions": {
33
"api/*.php": {
4-
"runtime": "vercel-php@0.6.0"
4+
"runtime": "vercel-php@0.7.0"
55
}
66
},
77
"routes": [

0 commit comments

Comments
 (0)