Skip to content

Commit

Permalink
Add support for Laravel 12 and PHP 8.4; update workflows and dependen…
Browse files Browse the repository at this point in the history
…cies
  • Loading branch information
frkcn committed Feb 20, 2025
1 parent cf2ada4 commit 9bd56a9
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 14 deletions.
60 changes: 51 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,88 @@ on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, '8.0', 8.1, 8.2, 8.3]
laravel: [6, 7, 8, 9, 10, 11]
php: [7.3, 7.4, '8.0', 8.1, 8.2, 8.3, 8.4]
laravel: [6, 7, 8, 9, 10, 11, 12]
exclude:
- php: 7.3
laravel: 9
- php: 7.3
laravel: 10
- php: 7.3
laravel: 11
- php: 7.3
laravel: 12
- php: 7.4
laravel: 9
- php: 7.4
laravel: 10
- php: 7.4
laravel: 11
- php: 7.4
laravel: 12
- php: '8.0'
laravel: 10
- php: '8.0'
laravel: 11
- php: '8.0'
laravel: 12
- php: 8.1
laravel: 6
- php: 8.1
laravel: 7
- php: 8.1
laravel: 11
- php: 8.1
laravel: 12
- php: 8.2
laravel: 6
- php: 8.2
laravel: 7
- php: 8.2
laravel: 8
- php: 8.3
laravel: 6
- php: 8.3
laravel: 7
- php: 8.3
laravel: 8
- php: 8.3
laravel: 9
- php: 8.4
laravel: 6
- php: 8.4
laravel: 7
- php: 8.4
laravel: 8
- php: 8.4
laravel: 9
- php: 8.4
laravel: 10

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout the code
uses: actions/checkout@v1
- name: Checkout the code
uses: actions/checkout@v4

- name: Disable Xdebug
run: sudo phpdismod xdebug
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, pcntl, zip
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer install --no-progress --no-ansi --profile --no-interaction --no-scripts --no-suggest --prefer-dist
run: |
composer require "illuminate/support:${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --testdox --colors=always --exclude-group skipped
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ coverage
/.idea
/phpunit.xml
.phpunit.result.cache
/.phpunit.cache
.DS_Store
1 change: 0 additions & 1 deletion .phpunit.cache/test-results

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to `easy-pdf` will be documented in this file.

## [Unreleased]

## 2.11.0 - 2025-02-10
- Laravel 12 and PHP 8.4 support added.

## 2.10.1 - 2024-10-10
- Fix re-defining `K_PATH_IMAGES` constant bug.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Total Downloads](https://img.shields.io/packagist/dt/tarfin-labs/easy-pdf.svg?style=flat-square)](https://packagist.org/packages/tarfin-labs/easy-pdf)

## Introduction
easy-pdf is a [tcpdf](https://tcpdf.org/) wrapper for Laravel 6.x, 7.x, 8.x, 9.x, 10.x, 11.x.
easy-pdf is a [tcpdf](https://tcpdf.org/) wrapper for Laravel 6.x, 7.x, 8.x, 9.x, 10.x, 11.x., 12.x.

## Installation

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
}
],
"require": {
"php": "^7.3|^8.0|^8.1|^8.2|^8.3",
"illuminate/support": "6.11.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"php": "^7.3|^8.0|^8.1|^8.2|^8.3|^8.4",
"illuminate/support": "6.11.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"setasign/fpdi-tcpdf": "^2.2",
"tecnickcom/tcpdf": "^6.3",
"ext-fileinfo": "*"
},
"require-dev": {
"mockery/mockery": "^1.3",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"phpunit/phpunit": "^9.0|^10.0"
},
"autoload": {
Expand Down

0 comments on commit 9bd56a9

Please sign in to comment.