Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit e1742fb

Browse files
committed
composer 2 / php 8
1 parent 758d082 commit e1742fb

File tree

5 files changed

+33
-13
lines changed

5 files changed

+33
-13
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ before_script:
3131
- echo 'Europe/Zurich' | sudo tee /etc/timezone
3232
- echo 'date.timezone = "Europe/Zurich"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3333
- composer self-update -q
34-
- composer global require hirak/prestissimo
3534
- composer update $composerargs -n
3635

3736
script:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019 Dominik Zogg
1+
Copyright (c) 2020 Dominik Zogg
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,30 @@
22

33
[![Build Status](https://api.travis-ci.org/chubbyphp/chubbyphp-api-http.png?branch=master)](https://travis-ci.org/chubbyphp/chubbyphp-api-http)
44
[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/chubbyphp-api-http/badge.svg?branch=master)](https://coveralls.io/github/chubbyphp/chubbyphp-api-http?branch=master)
5+
[![Infection MSI](https://badge.stryker-mutator.io/github.com/chubbyphp/chubbyphp-api-http/master)](https://travis-ci.org/chubbyphp/chubbyphp-api-http)
56
[![Latest Stable Version](https://poser.pugx.org/chubbyphp/chubbyphp-api-http/v/stable.png)](https://packagist.org/packages/chubbyphp/chubbyphp-api-http)
67
[![Total Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-api-http/downloads.png)](https://packagist.org/packages/chubbyphp/chubbyphp-api-http)
78
[![Monthly Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-api-http/d/monthly)](https://packagist.org/packages/chubbyphp/chubbyphp-api-http)
8-
[![Daily Downloads](https://poser.pugx.org/chubbyphp/chubbyphp-api-http/d/daily)](https://packagist.org/packages/chubbyphp/chubbyphp-api-http)
9+
10+
[![bugs](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=bugs)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
11+
[![code_smells](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=code_smells)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
12+
[![coverage](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=coverage)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
13+
[![duplicated_lines_density](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
14+
[![ncloc](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=ncloc)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
15+
[![sqale_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
16+
[![alert_status](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=alert_status)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
17+
[![reliability_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
18+
[![security_rating](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=security_rating)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
19+
[![sqale_index](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=sqale_index)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
20+
[![vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=chubbyphp_chubbyphp-api-http&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-api-http)
921

1022
## Description
1123

1224
A simple http handler implementation for API.
1325

1426
## Requirements
1527

16-
* php: ^7.2
28+
* php: ^7.2|^8.0
1729
* chubbyphp/chubbyphp-deserialization: ^3.0
1830
* chubbyphp/chubbyphp-negotiation: ^1.7
1931
* chubbyphp/chubbyphp-serialization: ^3.0

composer.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.2",
13+
"php": "^7.2|^8.0",
1414
"chubbyphp/chubbyphp-deserialization": "^3.0",
1515
"chubbyphp/chubbyphp-negotiation": "^1.7",
1616
"chubbyphp/chubbyphp-serialization": "^3.0",
@@ -24,13 +24,19 @@
2424
"chubbyphp/chubbyphp-dev-helper": "dev-master",
2525
"chubbyphp/chubbyphp-laminas-config-factory": "^1.0",
2626
"chubbyphp/chubbyphp-mock": "^1.4.5",
27-
"infection/infection": "^0.15.3|^0.16.4",
28-
"php-coveralls/php-coveralls": "^2.2",
27+
"friendsofphp/php-cs-fixer": "^2.16@dev",
28+
"infection/infection": "^0.15.3|^0.16.6|^0.18.0",
29+
"php-coveralls/php-coveralls": "^2.4.1",
2930
"phploc/phploc": "^5.0|^6.0.2",
30-
"phpstan/extension-installer": "^1.0.4",
31-
"phpstan/phpstan": "^0.12.32",
32-
"phpunit/phpunit": "^8.5.8|^9.2.5",
33-
"pimple/pimple": "^3.3"
31+
"phpstan/extension-installer": "^1.0.5",
32+
"phpstan/phpstan": "^0.12.50",
33+
"phpunit/phpunit": "^8.5.8|^9.4.1",
34+
"pimple/pimple": "^3.3",
35+
"psr/container": "^1.0"
36+
},
37+
"conflict": {
38+
"composer/composer": "<1.10.16",
39+
"ocramius/package-versions": ">=1.10"
3440
},
3541
"autoload": {
3642
"psr-4": { "Chubbyphp\\ApiHttp\\": "src/" }
@@ -58,7 +64,7 @@
5864
"@test:cs",
5965
"@test:insights"
6066
],
61-
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
67+
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
6268
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
6369
"test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse -v --no-interaction --min-quality=95 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
6470
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",

infection.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
},
77
"timeout": 10,
88
"logs": {
9-
"text": "build/phpinfection.log"
9+
"text": "build/phpinfection.log",
10+
"badge": {
11+
"branch": "master"
12+
}
1013
},
1114
"mutators": {
1215
"@default": true

0 commit comments

Comments
 (0)