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
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- 8.2
- 8.3
- 8.4
- 8.5
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- PHP-8.5 support

## [3.0.12] - 2025-07-03
### Added
- PHP-8.4 support
Expand Down
2 changes: 1 addition & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ help:
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

build: ## build php images
docker-compose build
docker compose build

test: ## test all against all php images
$(MAKE) test-php-7.0
Expand Down
7 changes: 7 additions & 0 deletions build/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,11 @@ services:
context: php-8.4
volumes:
- ..:/app
network_mode: host

php-8.5:
build:
context: php-8.5
volumes:
- ..:/app
network_mode: host
6 changes: 3 additions & 3 deletions build/php-7.0/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-7.0 test-php-7.0 test-suite-php-7.0

prepare-php-7.0: ## load dependencies with php 7.0
docker-compose run -T php-7.0 /usr/bin/composer update
docker compose run -T php-7.0 /usr/bin/composer update

test-php-7.0: prepare-php-7.0 ## run tests against php 7.0
docker-compose run -T php-7.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-7.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-7.0: prepare-php-7.0 ## run suite tests against php 7.0, ex: make test-suite-php-7.0 SUITE="unit"
docker-compose run -T php-7.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-7.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-7.1/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-7.1 test-php-7.1 test-suite-php-7.1

prepare-php-7.1: ## load dependencies with php 7.1
docker-compose run -T php-7.1 /usr/bin/composer update
docker compose run -T php-7.1 /usr/bin/composer update

test-php-7.1: prepare-php-7.1 ## run tests against php 7.1
docker-compose run -T php-7.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-7.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-7.1: prepare-php-7.1 ## run suite tests against php 7.1, ex: make test-suite-php-7.1 SUITE="unit"
docker-compose run -T php-7.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-7.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-7.2/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-7.2 test-php-7.2 test-suite-php-7.2

prepare-php-7.2: ## load dependencies with php 7.2
docker-compose run -T php-7.2 /usr/bin/composer update
docker compose run -T php-7.2 /usr/bin/composer update

test-php-7.2: prepare-php-7.2 ## run tests against php 7.2
docker-compose run -T php-7.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-7.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-7.2: prepare-php-7.2 ## run suite tests against php 7.2, ex: make test-suite-php-7.2 SUITE="unit"
docker-compose run -T php-7.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-7.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-7.3/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-7.3 test-php-7.3 test-suite-php-7.3

prepare-php-7.3: ## load dependencies with php 7.3
docker-compose run -T php-7.3 /usr/bin/composer update
docker compose run -T php-7.3 /usr/bin/composer update

test-php-7.3: prepare-php-7.3 ## run tests against php 7.3
docker-compose run -T php-7.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-7.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-7.3: prepare-php-7.3 ## run suite tests against php 7.3, ex: make test-suite-php-7.3 SUITE="unit"
docker-compose run -T php-7.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-7.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-7.4/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-7.4 test-php-7.4 test-suite-php-7.4

prepare-php-7.4: ## load dependencies with php 7.4
docker-compose run -T php-7.4 /usr/bin/composer update
docker compose run -T php-7.4 /usr/bin/composer update

test-php-7.4: prepare-php-7.4 ## run tests against php 7.4
docker-compose run -T php-7.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-7.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-7.4: prepare-php-7.4 ## run suite tests against php 7.4, ex: make test-suite-php-7.4 SUITE="unit"
docker-compose run -T php-7.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-7.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-8.0/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-8.0 test-php-8.0 test-suite-php-8.0

prepare-php-8.0: ## load dependencies with php 8.0
docker-compose run -T php-8.0 /usr/bin/composer update
docker compose run -T php-8.0 /usr/bin/composer update

test-php-8.0: prepare-php-8.0 ## run tests against php 8.0
docker-compose run -T php-8.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-8.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-8.0: prepare-php-8.0 ## run suite tests against php 8.0, ex: make test-suite-php-8.0 SUITE="unit"
docker-compose run -T php-8.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-8.0 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-8.1/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-8.1 test-php-8.1 test-suite-php-8.1

prepare-php-8.1: ## load dependencies with php 8.1
docker-compose run -T php-8.1 /usr/bin/composer update
docker compose run -T php-8.1 /usr/bin/composer update

test-php-8.1: prepare-php-8.1 ## run tests against php 8.1
docker-compose run -T php-8.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-8.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-8.1: prepare-php-8.1 ## run suite tests against php 8.1, ex: make test-suite-php-8.1 SUITE="unit"
docker-compose run -T php-8.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-8.1 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-8.2/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-8.2 test-php-8.2 test-suite-php-8.2

prepare-php-8.2: ## load dependencies with php 8.2
docker-compose run -T php-8.2 /usr/bin/composer update
docker compose run -T php-8.2 /usr/bin/composer update

test-php-8.2: prepare-php-8.2 ## run tests against php 8.2
docker-compose run -T php-8.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-8.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-8.2: prepare-php-8.2 ## run suite tests against php 8.2, ex: make test-suite-php-8.2 SUITE="unit"
docker-compose run -T php-8.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-8.2 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-8.3/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-8.3 test-php-8.3 test-suite-php-8.3

prepare-php-8.3: ## load dependencies with php 8.3
docker-compose run -T php-8.3 /usr/bin/composer update
docker compose run -T php-8.3 /usr/bin/composer update

test-php-8.3: prepare-php-8.3 ## run tests against php 8.3
docker-compose run -T php-8.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-8.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-8.3: prepare-php-8.3 ## run suite tests against php 8.3, ex: make test-suite-php-8.3 SUITE="unit"
docker-compose run -T php-8.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-8.3 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 3 additions & 3 deletions build/php-8.4/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: prepare-php-8.4 test-php-8.4 test-suite-php-8.4

prepare-php-8.4: ## load dependencies with php 8.4
docker-compose run -T php-8.4 /usr/bin/composer update
docker compose run -T php-8.4 /usr/bin/composer update

test-php-8.4: prepare-php-8.4 ## run tests against php 8.4
docker-compose run -T php-8.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml
docker compose run -T php-8.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-8.4: prepare-php-8.4 ## run suite tests against php 8.4, ex: make test-suite-php-8.4 SUITE="unit"
docker-compose run -T php-8.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
docker compose run -T php-8.4 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
6 changes: 6 additions & 0 deletions build/php-8.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM composer:latest AS composer
FROM php:8.5-cli-alpine

COPY --from=composer /usr/bin/composer /usr/bin/composer

WORKDIR /app/
10 changes: 10 additions & 0 deletions build/php-8.5/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: prepare-php-8.5 test-php-8.5 test-suite-php-8.5

prepare-php-8.5: ## load dependencies with php 8.5
docker compose run -T php-8.5 /usr/bin/composer update

test-php-8.5: prepare-php-8.5 ## run tests against php 8.5
docker compose run -T php-8.5 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml

test-suite-php-8.5: prepare-php-8.5 ## run suite tests against php 8.5, ex: make test-suite-php-8.5 SUITE="unit"
docker compose run -T php-8.5 php vendor/bin/phpunit --configuration tests-resources/phpunit.xml --testsuite $(SUITE)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"require": {
"php": "^7 || ~8.0 || ~8.1 || ~8.2 || ~8.3 || ~8.4",
"php": "^7 || ~8.0 || ~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5",
"ext-json": "*",
"psr/log": "^1 || ^2 || ^3",
"psr/http-message": "~1.0 || ~1.1 || ~2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/SmsapiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
interface SmsapiClient extends LoggerAwareInterface
{
const VERSION = '3.0.12';
const VERSION = 'Unreleased';

public function smsapiPlService(string $apiToken): SmsapiPlService;

Expand Down