Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/json5-2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x authored Feb 15, 2024
2 parents 39b229e + 9dfad68 commit a2dc0ca
Show file tree
Hide file tree
Showing 29 changed files with 1,249 additions and 1,188 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '14.x'

Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

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

- Update LD_LIBRARY_PATH

### [0.5.4] - 2024-01-24

- Update LD_LIBRARY_PATH

### [0.4.3] - 2024-01-24

- Update LD_LIBRARY_PATH

### [0.3.5] - 2024-01-24

- Update LD_LIBRARY_PATH

### [0.6.0] - 2023-03-27

- PHP 8.2
- Use `@libphp/amazon-linux-2-v82: latest`

### [0.5.3] - 2023-03-27

- Bump minimum node version from 14.x to 18.x
- Upgrade dependencies

### [0.5.2] - 2022-08-10

- Bump minimum node version from 12.x to 14.x
Expand Down
31 changes: 16 additions & 15 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.5.2"
"runtime": "vercel-php@0.6.1"
}
}
}
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.1.4
- **PHP version**: 8.2 (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,9 +90,10 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go!
## 💯 Versions

- `[email protected]` - PHP 8.1.x
- `[email protected]` - PHP 8.0.x
- `[email protected]` - PHP 7.4.x
- `[email protected]` - Node 18.x / PHP 8.2.x (https://example-php-8-2.vercel.app)
- `[email protected]` - Node 18.x / PHP 8.1.x (https://example-php-8-1.vercel.app)
- `[email protected]` - Node 18.x / PHP 8.0.x (https://example-php-8-0.vercel.app)
- `[email protected]` - Node 18.x / PHP 7.4.x (https://example-php-7-4.vercel.app)

## ⚙️ Usage

Expand All @@ -105,7 +106,7 @@ If you need to route everything to index, use `routes` property.
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
}
},
"routes": [
Expand Down Expand Up @@ -180,19 +181,19 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
},
// Can be list also directly
"api/index.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
},
"api/users.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
},
"api/books.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
}
}
}
Expand All @@ -207,7 +208,7 @@ project
{
"functions": {
"api/index.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
}
},
"routes": [
Expand All @@ -227,7 +228,7 @@ Additional function properties are `memory`, `maxDuration`. Learn more about [fu
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.5.2",
"runtime": "vercel-php@0.6.1",
"memory": 3008,
"maxDuration": 60
}
Expand All @@ -254,7 +255,7 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
}
}
}
Expand Down Expand Up @@ -293,7 +294,7 @@ project
{
"functions": {
"api/*.php": {
"runtime": "vercel-php@0.5.2"
"runtime": "vercel-php@0.6.1"
}
}
}
Expand All @@ -318,7 +319,7 @@ Runtimes support excluding some files or folders, [take a look at doc](https://v
{
"functions": {
"api/**/*.php": {
"runtime": "vercel-php@0.5.2",
"runtime": "vercel-php@0.6.1",
"excludeFiles": "{foo/**,bar/config/*.yaml}",
}
}
Expand Down
Loading

0 comments on commit a2dc0ca

Please sign in to comment.