Skip to content
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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ SHELL=bash
.PHONY: *

CONTAINER_REGISTRY_REPO="ghcr.io/wyrihaximusnet/php"
COMPOSER_SHOW_EXTENSION_LIST_PROD=$(shell composer show -t | grep -o "\-\-\(ext-\).\+" | sort | uniq | cut -d- -f4- | tr -d '\n' | grep . | sed '/^$$/d' | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],' | sed 's/.$$//')
COMPOSER_SHOW_EXTENSION_LIST_DEV=$(shell composer show -s | grep -o "\(ext-\).\+" | sort | uniq | cut -d- -f2- | cut -d" " -f1 | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],')
COMPOSER_SHOW_EXTENSION_LIST_PROD=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer show -t) | grep -o "\-\-\(ext-\).\+" | sort | uniq | cut -d- -f4- | tr -d '\n' | grep . | sed '/^$$/d' | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],' | sed 's/.$$//')
COMPOSER_SHOW_EXTENSION_LIST_DEV=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer show -s) | grep -o "\(ext-\).\+" | sort | uniq | cut -d- -f2- | cut -d" " -f1 | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],')
COMPOSER_SHOW_EXTENSION_LIST=$(shell echo "${COMPOSER_SHOW_EXTENSION_LIST_PROD},${COMPOSER_SHOW_EXTENSION_LIST_DEV}")
SLIM_DOCKER_IMAGE=$(shell php -r 'echo count(array_intersect(["gd", "vips"], explode(",", "${COMPOSER_SHOW_EXTENSION_LIST}"))) > 0 ? "" : "-slim";')
NTS_OR_ZTS_DOCKER_IMAGE=$(shell php -r 'echo count(array_intersect(["parallel"], explode(",", "${COMPOSER_SHOW_EXTENSION_LIST}"))) > 0 ? "zts" : "nts";')
PHP_VERSION:=$(shell (((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim php -r "echo json_decode(file_get_contents('`pwd`/composer.json'), true)['config']['platform']['php'];") || echo "8.3") | php -r "echo str_replace('|', '.', explode('.', implode('|', explode('.', stream_get_contents(STDIN), 2)), 2)[0]);")
CONTAINER_NAME=$(shell echo "${CONTAINER_REGISTRY_REPO}:${PHP_VERSION}-${NTS_OR_ZTS_DOCKER_IMAGE}-alpine${SLIM_DOCKER_IMAGE}-dev")
COMPOSER_CACHE_DIR=$(shell composer config --global cache-dir -q || echo ${HOME}/.composer-php/cache)
COMPOSER_CACHE_DIR=$(shell (command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer config --global cache-dir -q || echo ${HOME}/.composer-php/cache)
COMPOSER_CONTAINER_CACHE_DIR=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -it ${CONTAINER_NAME} composer config --global cache-dir -q) || echo ${HOME}/.composer-php/cache)

ifneq ("$(wildcard /.you-are-in-a-wyrihaximus.net-php-docker-image)","")
Expand Down
107 changes: 54 additions & 53 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,58 @@
{
"name": "react-parallel/streams",
"description": "\ud83c\udfde\ufe0f Streams abstraction around ext-parallel Channels for ReactPHP",
"license": "MIT",
"authors": [
{
"name": "Cees-Jan Kiewiet",
"email": "[email protected]",
"homepage": "http://wyrihaximus.net/"
}
],
"require": {
"php": "^8.3",
"ext-parallel": "*",
"react-parallel/event-loop": "^2.1.0",
"react/event-loop": "^1.5",
"react/promise": "^3.1"
},
"require-dev": {
"react-parallel/stubs": "^1.2",
"wyrihaximus/async-test-utilities": "^9.3.0",
"wyrihaximus/makefiles": "^0.5.0",
"wyrihaximus/ticking-promise": "^3.1.0"
},
"autoload": {
"psr-4": {
"ReactParallel\\Streams\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ReactParallel\\Tests\\Streams\\": "tests/"
}
"name": "react-parallel/streams",
"description": "\ud83c\udfde\ufe0f Streams abstraction around ext-parallel Channels for ReactPHP",
"license": "MIT",
"authors": [
{
"name": "Cees-Jan Kiewiet",
"email": "[email protected]",
"homepage": "http://wyrihaximus.net/"
}
],
"require": {
"php": "^8.4",
"ext-parallel": "*",
"react-parallel/event-loop": "^2.1.0",
"react/event-loop": "^1.5",
"react/promise": "^3.1"
},
"require-dev": {
"react-parallel/stubs": "^1.2",
"wyrihaximus/async-test-utilities": "^10.1.0",
"wyrihaximus/makefiles": "^0.6.0",
"wyrihaximus/ticking-promise": "^3.1.0"
},
"autoload": {
"psr-4": {
"ReactParallel\\Streams\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ReactParallel\\Tests\\Streams\\": "tests/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"icanhazstring/composer-unused": true,
"infection/extension-installer": true,
"phpstan/extension-installer": true,
"wyrihaximus/makefiles": true,
"wyrihaximus/test-utilities": true
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"icanhazstring/composer-unused": true,
"infection/extension-installer": true,
"phpstan/extension-installer": true,
"wyrihaximus/makefiles": true
},
"platform": {
"php": "8.3.13"
},
"sort-packages": true
"platform": {
"php": "8.4.13"
},
"scripts": {
"post-install-cmd": [
"composer normalize"
],
"post-update-cmd": [
"composer normalize"
]
}
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"make on-install-or-update || true"
],
"post-update-cmd": [
"make on-install-or-update || true"
]
}
}
Loading
Loading