forked from easybill/zugferd-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from silarhi/update
Update
- Loading branch information
Showing
205 changed files
with
2,219 additions
and
11,795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"version": 2, | ||
"updates": [ | ||
{ | ||
"allow": [ | ||
{ | ||
"dependency-type": "all" | ||
} | ||
], | ||
"directory": "/", | ||
"package-ecosystem": "composer", | ||
"schedule": { | ||
"interval": "daily" | ||
}, | ||
"versioning-strategy": "increase" | ||
}, | ||
{ | ||
"directory": "/", | ||
"package-ecosystem": "github-actions", | ||
"schedule": { | ||
"interval": "daily" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'refs/pull/*' | ||
- 'main' | ||
|
||
jobs: | ||
matrix: | ||
name: Generate job matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.matrix }} | ||
steps: | ||
- name: Gather CI configuration | ||
id: matrix | ||
uses: laminas/laminas-ci-matrix-action@v1 | ||
|
||
qa: | ||
name: QA Checks | ||
needs: [matrix] | ||
runs-on: ${{ matrix.operatingSystem }} | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} | ||
steps: | ||
- name: ${{ matrix.name }} | ||
uses: laminas/laminas-continuous-integration-action@v1 | ||
with: | ||
job: ${{ matrix.job }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: PHPStan | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'refs/pull/*' | ||
- '5.x' | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
run: | ||
name: PHPStan ${{ matrix.php }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
php: [ '8.2' ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
php-version: ${{ matrix.php }} | ||
ini-values: memory_limit=-1 | ||
tools: composer:v2 | ||
|
||
- name: Determine composer cache directory | ||
id: composer-cache | ||
run: | | ||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache composer dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ matrix.php }}-composer- | ||
- name: Install Dependencies | ||
run: composer update --no-progress --ansi | ||
|
||
- name: PHPStan | ||
run: ./vendor/bin/phpstan analyse |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
vendor | ||
.idea | ||
.DS_Store | ||
/zugferd10 | ||
/composer.lock | ||
/zugferd20 | ||
/zugferd211de | ||
.phpunit.result.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"exclude": [ | ||
{ | ||
"name": "README Linting [8.0, latest]" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,52 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in([__DIR__ . '/src', __DIR__ . '/tests']); | ||
/* | ||
* This file is part of the ZUGFeRD PHP package. | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRiskyAllowed(false) | ||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$header = <<<'EOF' | ||
This file is part of the ZUGFeRD PHP package. | ||
This source file is subject to the MIT license that is bundled | ||
with this source code in the file LICENSE. | ||
EOF; | ||
|
||
$finder = (new Finder()) | ||
->in([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]) | ||
->append([ | ||
__FILE__, | ||
]) | ||
; | ||
|
||
return (new Config()) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'@Symfony' => true, | ||
'@PhpCsFixer' => true, | ||
'@Symfony:risky' => true, | ||
'@DoctrineAnnotation' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'cast_spaces' => ['space' => 'none'], | ||
'phpdoc_summary' => false, | ||
'no_superfluous_phpdoc_tags' => true, | ||
'header_comment' => ['header' => $header], | ||
'concat_space' => ['spacing' => 'one'], | ||
'yoda_style' => false, | ||
'ordered_class_elements' => false, | ||
'ordered_imports' => false, | ||
//'method_argument_space' => null, | ||
//'no_whitespace_in_blank_line' => null, | ||
//'no_extra_blank_lines' => null, | ||
//'braces' => null, | ||
'blank_line_before_statement' => false, | ||
'phpdoc_align' => ['align' => 'left'], | ||
'phpdoc_var_without_name' => false, | ||
'phpdoc_types_order' => false, | ||
'phpdoc_order' => false, | ||
'phpdoc_separation' => false, | ||
//'no_superfluous_elseif' => null, | ||
'class_definition' => false, | ||
'ternary_to_null_coalescing' => true, | ||
'php_unit_test_class_requires_covers' => false, | ||
'php_unit_internal_class' => false, | ||
'native_constant_invocation' => true, | ||
'native_function_invocation' => ['include' => ['@compiler_optimized']], | ||
'ordered_imports' => ['sort_algorithm' => 'alpha'], | ||
'global_namespace_import' => ['import_functions' => true], | ||
'declare_strict_types' => true, | ||
'non_printable_character' => false, | ||
'no_trailing_whitespace_in_string' => false, | ||
]) | ||
->setFinder($finder); | ||
->setFinder($finder) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "easybill/zugferd-php", | ||
"name": "silarhi/zugferd-php", | ||
"description": "ZUGFeRD PHP SDK (Factur-X, XRechnung) - Convert PHP Objects to XML and back.", | ||
"keywords": [ | ||
"ZUGFeRD", "Factur-X", "XRechnung" | ||
|
@@ -11,31 +11,35 @@ | |
{ | ||
"name": "Patrick Romowicz", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "SILARHI", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.4 || ^8.0", | ||
"jms/serializer": "^3.16", | ||
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", | ||
"jms/serializer": "^3.18", | ||
"ext-dom": "*" | ||
}, | ||
"suggest": { | ||
"ext-libxml": "Needed for XSD validation" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.3", | ||
"phpunit/phpunit": "^9.6.15", | ||
"ext-libxml": "*", | ||
"friendsofphp/php-cs-fixer": "^3.16" | ||
"friendsofphp/php-cs-fixer": "^3.16", | ||
"phpstan/phpstan": "^1.10", | ||
"rector/rector": "^1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Easybill\\ZUGFeRD\\": "src/zugferd10", | ||
"Easybill\\ZUGFeRD211\\": "src/zugferd211" | ||
"Easybill\\ZUGFeRD\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Easybill\\ZUGFeRD\\": "tests/zugferd10", | ||
"Easybill\\ZUGFeRD211\\": "tests/zugferd211" | ||
"Easybill\\ZUGFeRD\\Tests\\": "tests/" | ||
} | ||
}, | ||
"config": { | ||
|
Oops, something went wrong.