diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4ae74ece..fc88e125 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,25 +1,13 @@ -{ - "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" - } - } - ] -} +version: 2 +updates: + - allow: + - dependency-type: "all" + directory: "/" + package-ecosystem: "composer" + schedule: + interval: "weekly" + versioning-strategy: "increase" + - directory: "/" + package-ecosystem: "github-actions" + schedule: + interval: "weekly" diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1981e254..25567412 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -4,8 +4,8 @@ on: pull_request: push: branches: - - 'refs/pull/*' - - 'main' + - "refs/pull/*" + - "main" jobs: matrix: diff --git a/.github/workflows/cs.yaml b/.github/workflows/cs.yaml deleted file mode 100644 index c2496e6c..00000000 --- a/.github/workflows/cs.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Code Style - -on: - pull_request: - push: - branches: - - 'refs/pull/*' - - 'main' - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - include: - - { operating-system: 'ubuntu-latest', php-version: '8.2', dependencies: '' } - - name: PHP ${{ matrix.php-version }} - - steps: - - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - coverage: pcov - tools: composer:v2 - - - name: Install dependencies - run: | - composer install --no-interaction --prefer-dist --no-progress ${{ matrix.dependencies }} - - - name: Check code style - run: | - php vendor/bin/php-cs-fixer --using-cache=no --diff --dry-run --stop-on-violation --verbose fix diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml deleted file mode 100644 index 3c5fda8f..00000000 --- a/.github/workflows/phpstan.yml +++ /dev/null @@ -1,52 +0,0 @@ -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/cache@v4.0.0 - 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 diff --git a/.laminas-ci.json b/.laminas-ci.json index a62e148d..46a9f393 100644 --- a/.laminas-ci.json +++ b/.laminas-ci.json @@ -1,7 +1,11 @@ { - "exclude": [ + "additional_checks": [ { - "name": "README Linting [8.0, latest]" + "name": "PHPStan", + "job": { + "command": "./vendor/bin/phpstan analyse", + "php": "8.2" + } } ] } diff --git a/README.md b/README.md index 8b1adc54..85b19817 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -ZUGFeRD PHP -=========== +# ZUGFeRD PHP -[![Latest Stable Version](https://poser.pugx.org/silarhi/zugferd-factur-x/v/stable.png)](https://packagist.org/packages/silarhi/zugferd-factur-x) [![Total Downloads](https://poser.pugx.org/silarhi/zugferd-factur-x/downloads.png)](https://packagist.org/packages/silarhi/zugferd-factur-x) [![Latest Unstable Version](https://poser.pugx.org/silarhi/zugferd-factur-x/v/unstable.png)](https://packagist.org/packages/silarhi/zugferd-factur-x) [![License](https://poser.pugx.org/silarhi/zugferd-factur-x/license.png)](https://packagist.org/packages/silarhi/zugferd-factur-x) +![Build Status](https://github.com/silarhi/zugferd-factur-x/actions/workflows/continuous-integration.yml/badge.svg) +[![Latest Stable Version](https://poser.pugx.org/silarhi/zugferd-factur-x/v/stable)](https://packagist.org/packages/silarhi/zugferd-factur-x) +[![Total Downloads](https://poser.pugx.org/silarhi/zugferd-factur-x/downloads)](https://packagist.org/packages/silarhi/zugferd-factur-x) +[![License](https://poser.pugx.org/silarhi/zugferd-factur-x/license)](https://packagist.org/packages/silarhi/zugferd-factur-x) XML generator for ZUGFeRD / Factur-X / XRechnung written in PHP. Convert PHP Objects to XML and back. diff --git a/composer.json b/composer.json index d610d411..db93e9d3 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "php": ">=8.0", "jms/serializer": "^3.18", "ext-dom": "*" },