mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 00:05:37 +08:00
update extensions from pecl to pie
This commit is contained in:
@@ -2,8 +2,9 @@ ext-amqp:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: amqp
|
||||
type: pie
|
||||
repo: php-amqp/php-amqp
|
||||
extract: php-src/ext/amqp
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-apcu:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: APCu
|
||||
type: pie
|
||||
repo: apcu/apcu
|
||||
extract: php-src/ext/apcu
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-ast:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: ast
|
||||
type: pie
|
||||
repo: nikic/php-ast
|
||||
extract: php-src/ext/ast
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: BSD-3-Clause
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-dio:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: dio
|
||||
type: pie
|
||||
repo: pecl/dio
|
||||
extract: php-src/ext/dio
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-ev:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: ev
|
||||
type: pie
|
||||
repo: osmanov/pecl-ev
|
||||
extract: php-src/ext/ev
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-excimer:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: excimer
|
||||
type: ghtagtar
|
||||
repo: wikimedia/mediawiki-php-excimer
|
||||
extract: php-src/ext/excimer
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-gearman:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: gearman
|
||||
type: ghtar
|
||||
repo: php/pecl-networking-gearman
|
||||
extract: php-src/ext/gearman
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-grpc:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: grpc
|
||||
type: pie
|
||||
repo: grpc/grpc-php-ext
|
||||
extract: php-src/ext/grpc
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: Apache-2.0
|
||||
|
||||
@@ -2,8 +2,10 @@ ext-igbinary:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: igbinary
|
||||
type: ghtagtar
|
||||
repo: igbinary/igbinary
|
||||
match: tags/\d+(\.\d+)+$
|
||||
extract: php-src/ext/igbinary
|
||||
metadata:
|
||||
license-files: [COPYING]
|
||||
license: BSD-3-Clause
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-imagick:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: imagick
|
||||
type: pie
|
||||
repo: imagick/imagick
|
||||
extract: php-src/ext/imagick
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-imap:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: imap
|
||||
type: ghtagtar
|
||||
repo: php/pecl-mail-imap
|
||||
extract: php-src/ext/imap
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-inotify:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: inotify
|
||||
type: pie
|
||||
repo: arnaud-lb/inotify
|
||||
extract: php-src/ext/inotify
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-memcache:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: memcache
|
||||
type: ghtar
|
||||
repo: websupport-sk/pecl-memcache
|
||||
extract: php-src/ext/memcache
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.0
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-memcached:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: memcached
|
||||
type: pie
|
||||
repo: php-memcached/php-memcached
|
||||
extract: php-src/ext/memcached
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-msgpack:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: msgpack
|
||||
type: pie
|
||||
repo: msgpack/msgpack-php
|
||||
extract: php-src/ext/msgpack
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: BSD-3-Clause
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-opentelemetry:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: opentelemetry
|
||||
type: pie
|
||||
repo: open-telemetry/ext-opentelemetry
|
||||
extract: php-src/ext/opentelemetry
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: Apache-2.0
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-parallel:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: parallel
|
||||
type: pie
|
||||
repo: pecl/parallel
|
||||
extract: php-src/ext/parallel
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-pcov:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: pcov
|
||||
type: pie
|
||||
repo: pecl/pcov
|
||||
extract: php-src/ext/pcov
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-redis:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: redis
|
||||
type: pie
|
||||
repo: phpredis/phpredis
|
||||
extract: php-src/ext/redis
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-ssh2:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: ssh2
|
||||
type: ghtar
|
||||
repo: php/pecl-networking-ssh2
|
||||
extract: php-src/ext/ssh2
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-trader:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: trader
|
||||
type: ghtagtar
|
||||
repo: php/pecl-math-trader
|
||||
extract: php-src/ext/trader
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: BSD-2-Clause
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-uuid:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: uuid
|
||||
type: pie
|
||||
repo: pecl/uuid
|
||||
extract: php-src/ext/uuid
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: LGPL-2.1-only
|
||||
|
||||
@@ -2,9 +2,9 @@ ext-uv:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: uv
|
||||
prefer-stable: false
|
||||
type: ghtagtar
|
||||
repo: amphp/ext-uv
|
||||
extract: php-src/ext/uv
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,8 +2,8 @@ ext-xhprof:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: xhprof
|
||||
type: ghtar
|
||||
repo: longxinH/xhprof
|
||||
extract: php-src/ext/xhprof-src
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-xlswriter:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: xlswriter
|
||||
type: pie
|
||||
repo: viest/xlswriter
|
||||
extract: php-src/ext/xlswriter
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: BSD-2-Clause
|
||||
|
||||
@@ -2,8 +2,9 @@ ext-yac:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: yac
|
||||
type: ghtagtar
|
||||
repo: laruence/yac
|
||||
extract: php-src/ext/yac
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -2,9 +2,9 @@ ext-zip:
|
||||
type: php-extension
|
||||
artifact:
|
||||
source:
|
||||
type: pecl
|
||||
name: zip
|
||||
extract: ext-zip
|
||||
type: pie
|
||||
repo: pecl/zip
|
||||
extract: php-src/ext/zip
|
||||
metadata:
|
||||
license-files: [LICENSE]
|
||||
license: PHP-3.01
|
||||
|
||||
@@ -56,7 +56,23 @@ class PIE implements DownloadTypeInterface, CheckUpdateInterface
|
||||
if (!isset($data['packages'][$config['repo']]) || !is_array($data['packages'][$config['repo']])) {
|
||||
throw new DownloaderException("failed to find {$name} repo info from packagist");
|
||||
}
|
||||
$first = $data['packages'][$config['repo']][0] ?? [];
|
||||
// p2 metadata is minified: each entry only carries fields changed vs the previous one, '__unset' removes a field
|
||||
$releases = [];
|
||||
$current = [];
|
||||
foreach ($data['packages'][$config['repo']] as $release) {
|
||||
$current = array_merge($current, $release);
|
||||
$current = array_filter($current, static fn ($v) => $v !== '__unset');
|
||||
$releases[] = $current;
|
||||
}
|
||||
// packagist lists newest first including RC/beta/alpha — pick the newest stable release
|
||||
$first = null;
|
||||
foreach ($releases as $release) {
|
||||
if (!preg_match('/[._-]?(?:alpha|a|beta|b|rc)[._-]?\d*$/i', $release['version'] ?? '')) {
|
||||
$first = $release;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$first ??= $releases[0] ?? [];
|
||||
if (!isset($first['php-ext'])) {
|
||||
throw new DownloaderException("failed to find {$name} php-ext info from packagist, maybe not a php extension package");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user