Skip to content

Commit a7f01e3

Browse files
committed
Change requirements to PHP 7.2
1 parent 405cf31 commit a7f01e3

File tree

271 files changed

+8071
-7743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+8071
-7743
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
tab_width = 4
33
end_of_line = lf
44

5-
[*.{php}]
5+
[*.{php,json,xml.dist}]
66
indent_style = space

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# export
22
.git* export-ignore
33
.*.yml export-ignore
4+
.php_cs* export-ignore
45
test/ export-ignore
56
phpunit.* export-ignore
67
examples/ export-ignore

.gitignore

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
# eclipse project files
1+
# Eclipse project files
22
/.settings/
33
/.buildpath
44
/.project
55
/.pydevproject
66

7-
# build
7+
# VS Code
8+
/.vscode
9+
10+
# build files
811
/build/
12+
/.*.cache
913

10-
# composer
14+
# Composer
1115
/vendor/
1216
/composer.lock
1317

18+
# non-dist files
19+
/phpunit.xml
20+
/.php_cs
21+
1422
# sandbox
1523
/demo/

.php_cs.dist

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
declare(strict_types = 1);
4+
5+
$finder = PhpCsFixer\Finder::create()
6+
->in(__DIR__);
7+
8+
return PhpCsFixer\Config::create()
9+
->setRules([
10+
'@PSR2' => true,
11+
'@PhpCsFixer' => true,
12+
'multiline_whitespace_before_semicolons' => [
13+
'strategy' => 'no_multi_line',
14+
],
15+
'declare_equal_normalize' => [
16+
'space' => 'single',
17+
],
18+
'method_argument_space' => [
19+
'on_multiline' => 'ignore',
20+
],
21+
'blank_line_before_statement' => [
22+
'statements' => [],
23+
],
24+
'concat_space' => [
25+
'spacing' => 'one',
26+
],
27+
'list_syntax' => [
28+
'syntax' => 'short',
29+
],
30+
'php_unit_test_class_requires_covers' => false,
31+
'phpdoc_types' => false,
32+
])
33+
->setFinder($finder);

.scrutinizer.yml

+20-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
override:
6+
- php-scrutinizer-run
7+
tests-and-coverage:
8+
requires:
9+
- node: analysis
10+
tests:
11+
override:
12+
- command: vendor/bin/phpunit
13+
coverage:
14+
format: clover
15+
file: build/logs/clover.xml
216
environment:
317
php:
4-
version: 7.0.20
5-
tests:
6-
override:
7-
- command: vendor/bin/phpunit
8-
coverage:
9-
format: php-clover
10-
file: build/logs/clover.xml
18+
version: 7.2
19+
filter:
20+
excluded_paths:
21+
- test/
22+
dependency_paths:
23+
- vendor/
1124
checks:
1225
php:
1326
code_rating: true
1427
duplication: false
15-
filter:
16-
excluded_paths:
17-
- test/

.travis.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
language: php
22
php:
3-
- "7.0"
4-
- "7.1"
53
- "7.2"
6-
- "nightly"
4+
- "7.3"
75
before_script:
86
- "composer install"
9-
- "composer require satooshi/php-coveralls"
7+
- "composer require php-coveralls/php-coveralls"
108
after_success:
11-
- "travis_retry php vendor/bin/coveralls -v"
9+
- "travis_retry php vendor/bin/php-coveralls -v"

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Joni Eskelinen
3+
Copyright (c) 2016-2019 Joni Eskelinen
44

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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ corresponding RFC's as a reference documentation.
3030

3131
## Requirements
3232

33-
- PHP >=7.0
33+
- PHP >=7.2
3434
- gmp
3535
- [sop/asn1](https://github.com/sop/asn1)
3636
- [sop/x501](https://github.com/sop/x501)

composer.json

+41-39
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
11
{
2-
"name": "sop/x509",
3-
"description": "A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.",
4-
"homepage": "https://github.com/sop/x509",
5-
"license": "MIT",
6-
"type": "library",
7-
"keywords": [
8-
"x509",
9-
"x.509",
10-
"certificate",
11-
"attribute certificate",
12-
"ac",
13-
"certification request",
14-
"csr"
15-
],
16-
"authors": [
17-
{
18-
"name": "Joni Eskelinen",
19-
"email": "[email protected]",
20-
"role": "Developer"
21-
}
22-
],
23-
"require": {
24-
"php": ">=7.0",
25-
"ext-gmp": "*",
26-
"sop/asn1": "^3.2.0",
27-
"sop/x501": "^0.5.0",
28-
"sop/crypto-types": "^0.2.1",
29-
"sop/crypto-bridge": "^0.2.0",
30-
"sop/crypto-encoding": "^0.2.0"
31-
},
32-
"require-dev": {
33-
"phpunit/phpunit": "^6.4"
34-
},
35-
"autoload": {
36-
"psr-4": {
37-
"X509\\": "lib/X509/"
38-
}
39-
}
40-
}
2+
"name": "sop/x509",
3+
"description": "A PHP library for X.509 public key certificates, attribute certificates, certification requests and certification path validation.",
4+
"homepage": "https://github.com/sop/x509",
5+
"license": "MIT",
6+
"type": "library",
7+
"keywords": [
8+
"x509",
9+
"x.509",
10+
"certificate",
11+
"attribute certificate",
12+
"ac",
13+
"certification request",
14+
"csr"
15+
],
16+
"authors": [
17+
{
18+
"name": "Joni Eskelinen",
19+
"email": "[email protected]",
20+
"role": "Developer"
21+
}
22+
],
23+
"minimum-stability": "dev",
24+
"prefer-stable": true,
25+
"require": {
26+
"php": ">=7.2",
27+
"ext-gmp": "*",
28+
"sop/asn1": "dev-php72 as 3.4.0",
29+
"sop/x501": "dev-php72 as 0.5.0",
30+
"sop/crypto-types": "dev-php72 as 0.2.1",
31+
"sop/crypto-bridge": "dev-php72 as 0.2.0",
32+
"sop/crypto-encoding": "dev-php72 as 0.2.0"
33+
},
34+
"require-dev": {
35+
"phpunit/phpunit": "^8.1"
36+
},
37+
"autoload": {
38+
"psr-4": {
39+
"Sop\\X509\\": "lib/X509/"
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)