Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.3 #523

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
Loading