Skip to content

Commit 680370d

Browse files
authored
Merge pull request #686 from PHPOffice/develop
Release 1.0.0
2 parents 45da3bd + 5bcb57f commit 680370d

File tree

386 files changed

+135212
-17742
lines changed

Some content is hidden

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

386 files changed

+135212
-17742
lines changed

.codeclimate.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/auto_assign.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Set to true to add reviewers to pull requests
2+
addReviewers: true
3+
4+
# Set to true to add assignees to pull requests
5+
addAssignees: true
6+
7+
# A list of reviewers to be added to pull requests (GitHub user name)
8+
reviewers:
9+
- Progi1984
10+
11+
# A list of keywords to be skipped the process that add reviewers if pull requests include it
12+
skipKeywords:
13+
- WIP
14+
15+
# A number of reviewers added to the pull request
16+
# Set 0 to add all the reviewers (default: 0)
17+
numberOfReviewers: 0

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
time: "11:00"
8+
open-pull-requests-limit: 10
9+
assignees:
10+
- Progi1984

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
### MkDocs
16+
- name: Setup Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.x
20+
- name: Install Python Dependencies
21+
run: pip install mkdocs-material autolink-references-mkdocs-plugin
22+
- name: Build documentation
23+
run: mkdocs build --site-dir public
24+
### PHPUnit
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: '7.4'
29+
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
30+
coverage: xdebug
31+
- name: Create directory public/coverage
32+
run: mkdir ./public/coverage
33+
- name: Create directory public/coverage
34+
run: mkdir ./public/docs
35+
- name: Install PHP Dependencies
36+
run: composer install --ansi --prefer-dist --no-interaction --no-progress
37+
- name: Install PhpDocumentor
38+
run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
39+
- name: Build Coverage Report
40+
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./public/coverage
41+
- name: Build Documentation
42+
run: ./phpDocumentor.phar -d ./src -t ./public/docs
43+
44+
### Deploy
45+
- name: Deploy
46+
uses: peaceiris/actions-gh-pages@v3
47+
if: github.ref == 'refs/heads/develop'
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./public

.github/workflows/php.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: PHPPresentation
2+
on: [push, pull_request]
3+
jobs:
4+
php-cs-fixer:
5+
name: PHP CS Fixer
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Setup PHP
9+
uses: shivammathur/setup-php@v2
10+
with:
11+
php-version: '7.4'
12+
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
13+
- uses: actions/checkout@v2
14+
15+
- name: Validate composer config
16+
run: composer validate --strict
17+
18+
- name: Composer Install
19+
run: composer global require friendsofphp/php-cs-fixer
20+
21+
- name: Add environment path
22+
run: export PATH="$PATH:$HOME/.composer/vendor/bin"
23+
24+
- name: Run PHPCSFixer
25+
run: php-cs-fixer fix --dry-run --diff
26+
27+
phpmd:
28+
name: PHP Mess Detector
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Setup PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: '7.4'
35+
extensions: gd, xml, zip
36+
- uses: actions/checkout@v2
37+
38+
- name: Composer Install
39+
run: composer install --ansi --prefer-dist --no-interaction --no-progress
40+
41+
- name: Run phpmd
42+
run: ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
43+
44+
phpstan:
45+
name: PHP Static Analysis
46+
runs-on: ubuntu-latest
47+
strategy:
48+
fail-fast: false
49+
matrix:
50+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
51+
steps:
52+
- name: Setup PHP
53+
uses: shivammathur/setup-php@v2
54+
with:
55+
php-version: ${{ matrix.php }}
56+
extensions: gd, xml, zip
57+
- uses: actions/checkout@v2
58+
59+
- name: Composer Install
60+
run: composer install --ansi --prefer-dist --no-interaction --no-progress
61+
62+
- name: Run phpstan
63+
run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist
64+
65+
phpunit:
66+
name: PHPUnit
67+
runs-on: ubuntu-latest
68+
strategy:
69+
fail-fast: false
70+
matrix:
71+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
72+
steps:
73+
- name: Setup PHP
74+
uses: shivammathur/setup-php@v2
75+
with:
76+
php-version: ${{ matrix.php }}
77+
extensions: gd, xml, zip
78+
coverage: xdebug
79+
80+
- uses: actions/checkout@v2
81+
82+
- name: Composer Install
83+
run: composer install --ansi --prefer-dist --no-interaction --no-progress
84+
85+
- name: Run phpunit
86+
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
87+
88+
- name: Upload coverage results to Coveralls
89+
if: matrix.php == '7.3'
90+
env:
91+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
run: |
93+
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
94+
chmod +x php-coveralls.phar
95+
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@
66
Thumbs.db
77
Desktop.ini
88

9-
### IDE Jetbrains PhpStorm
10-
.idea
11-
### IDE Eclipse
12-
*.settings
13-
*.project
14-
*.buildpath
15-
169
### Continuous Integration
1710
build/
1811
phpunit.xml
12+
.php-cs-fixer.cache
13+
.phpunit.result.cache
1914
composer.phar
2015
vendor
2116
/batch_CI.bat

.php-cs-fixer.dist.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
$config = new PhpCsFixer\Config();
4+
5+
$config
6+
->setUsingCache(true)
7+
->setRiskyAllowed(true)
8+
->setRules([
9+
'@Symfony' => true,
10+
'array_indentation' => true,
11+
'cast_spaces' => [
12+
'space' => 'single',
13+
],
14+
'combine_consecutive_issets' => true,
15+
'concat_space' => [
16+
'spacing' => 'one',
17+
],
18+
'error_suppression' => [
19+
'mute_deprecation_error' => false,
20+
'noise_remaining_usages' => false,
21+
'noise_remaining_usages_exclude' => [],
22+
],
23+
'function_to_constant' => false,
24+
'method_chaining_indentation' => true,
25+
'no_alias_functions' => false,
26+
'no_superfluous_phpdoc_tags' => false,
27+
'non_printable_character' => [
28+
'use_escape_sequences_in_strings' => true,
29+
],
30+
'phpdoc_align' => [
31+
'align' => 'left',
32+
],
33+
'phpdoc_summary' => false,
34+
'protected_to_private' => false,
35+
'self_accessor' => false,
36+
'yoda_style' => false,
37+
'single_line_throw' => false,
38+
'no_alias_language_construct_call' => false,
39+
])
40+
->getFinder()
41+
->in(__DIR__)
42+
->exclude('vendor');
43+
44+
return $config;

.scrutinizer.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.travis_shell_after_success.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)