Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP 8.4 tests #44

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .docker/php/php84/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ----------------------
# The FPM base container
# ----------------------
FROM php:8.4-cli-alpine AS dev

RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS

# Cleanup apk cache and temp files
RUN rm -rf /var/cache/apk/* /tmp/*

# ----------------------
# Composer install step
# ----------------------

# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

# ----------------------
# The FPM production container
# ----------------------
FROM dev
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.0, 8.1, 8.2, 8.3]
php: [8.0, 8.1, 8.2, 8.3, 8.4]
laravel: ['9.*', '10.*', '11.*', '12.*']
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- laravel: 9.*
php: 8.2
- laravel: 9.*
php: 8.3
- laravel: 9.*
php: 8.4
- laravel: 10.*
php: 8.0
- laravel: 11.*
Expand Down
165 changes: 2 additions & 163 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,166 +1,5 @@
# Changelog

All notable changes to `cybercog/laravel-optimus` will be documented in this file.
All notable changes to `cybercog/laravel-optimus` are documented in [Laravel Optimus releases] page.

## [Unreleased]

## [3.11.0] - 2024-03-09

### Added

- ([#41]) Added Laravel 11 support

## [3.10.0] - 2023-09-13

### Added

- ([#38]) Support Route Scope Binding

## [3.9.0] - 2023-03-01

### Added

- ([#35]) Added Laravel 10 support

### Removed

- ([#35]) Dropped Laravel 5.5 support
- ([#35]) Dropped Laravel 5.6 support
- ([#35]) Dropped Laravel 5.7 support
- ([#35]) Dropped Laravel 5.8 support
- ([#35]) Dropped Laravel 6 support
- ([#35]) Dropped Laravel 7 support
- ([#35]) Dropped PHP 7.1 support
- ([#35]) Dropped PHP 7.2 support
- ([#35]) Dropped PHP 7.3 support

## [3.8.0] - 2022-02-11

### Added

- ([#32]) Added Laravel 9 support

## [3.7.0] - 2021-05-26

### Added

- ([#30]) Added custom route key support
- ([#31]) Added default custom route key support

## [3.6.0] - 2020-12-31

### Added

- ([#27]) PHP 8.x support

## [3.5.0] - 2020-09-09

### Added

- ([#25]) Laravel 8.x support

## [3.4.2] - 2020-03-06

### Added

- ([#23]) Laravel 7.x support

## [3.4.1] - 2020-02-29

## Fixed

- ([#22]) Handle string route values in `resolveRouteBinding` method

## [3.4.0] - 2019-09-04

### Added

- ([#20]) Laravel 6 support

## [3.3.0] - 2019-02-26

### Added

- ([#15]) Laravel 5.8 support

## [3.2.0] - 2018-11-10

### Fixed

- ([#14]) Fixed Lumen support in `OptimusEncodedRouteKey` trait

## [3.1.0] - 2017-09-09

### Added

- ([#13]) Laravel 5.7 support

## [3.0.0] - 2017-02-14

### Added

- ([#11]) Laravel 5.6 support

### Changed

- ([#11]) Minimum PHP required 7.1.3 because of manager dependency

### Removed

- ([#11]) Dropped support of Laravel lower than 5.5

## [2.1.0] - 2017-10-16

### Added

- ([#6]) Implicit route model binding

## [2.0.0] - 2017-09-09

### Added

- Laravel 5.5 support
- Service provider and facade auto-discovery

### Changed

- Namespace `Cog\Optimus` renamed to `Cog\Laravel\Optimus`

## 1.0.0 - 2017-01-01

Initial release

[Unreleased]: https://github.com/cybercog/laravel-optimus/compare/3.11.0...master
[3.11.0]: https://github.com/cybercog/laravel-optimus/compare/3.10.0...3.11.0
[3.10.0]: https://github.com/cybercog/laravel-optimus/compare/3.9.0...3.10.0
[3.9.0]: https://github.com/cybercog/laravel-optimus/compare/3.8.0...3.9.0
[3.8.0]: https://github.com/cybercog/laravel-optimus/compare/3.7.0...3.8.0
[3.7.0]: https://github.com/cybercog/laravel-optimus/compare/3.6.0...3.7.0
[3.6.0]: https://github.com/cybercog/laravel-optimus/compare/3.5.0...3.6.0
[3.5.0]: https://github.com/cybercog/laravel-optimus/compare/3.4.2...3.5.0
[3.4.2]: https://github.com/cybercog/laravel-optimus/compare/3.4.1...3.4.2
[3.4.1]: https://github.com/cybercog/laravel-optimus/compare/3.4.0...3.4.1
[3.4.0]: https://github.com/cybercog/laravel-optimus/compare/3.3.0...3.4.0
[3.3.0]: https://github.com/cybercog/laravel-optimus/compare/3.2.0...3.3.0
[3.2.0]: https://github.com/cybercog/laravel-optimus/compare/3.1.0...3.2.0
[3.1.0]: https://github.com/cybercog/laravel-optimus/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/cybercog/laravel-optimus/compare/2.1.0...3.0.0
[2.1.0]: https://github.com/cybercog/laravel-optimus/compare/2.0.0...2.1.0
[2.0.0]: https://github.com/cybercog/laravel-optimus/compare/1.0.0...2.0.0

[#41]: https://github.com/cybercog/laravel-optimus/pull/41
[#38]: https://github.com/cybercog/laravel-optimus/pull/38
[#35]: https://github.com/cybercog/laravel-optimus/pull/35
[#32]: https://github.com/cybercog/laravel-optimus/pull/32
[#31]: https://github.com/cybercog/laravel-optimus/pull/31
[#30]: https://github.com/cybercog/laravel-optimus/pull/30
[#27]: https://github.com/cybercog/laravel-optimus/pull/27
[#25]: https://github.com/cybercog/laravel-optimus/pull/25
[#23]: https://github.com/cybercog/laravel-optimus/pull/23
[#22]: https://github.com/cybercog/laravel-optimus/pull/22
[#20]: https://github.com/cybercog/laravel-optimus/pull/20
[#15]: https://github.com/cybercog/laravel-optimus/pull/15
[#14]: https://github.com/cybercog/laravel-optimus/pull/14
[#13]: https://github.com/cybercog/laravel-optimus/pull/13
[#11]: https://github.com/cybercog/laravel-optimus/pull/11
[#6]: https://github.com/cybercog/laravel-optimus/pull/6
[Laravel Optimus releases]: https://github.com/cybercog/laravel-optimus/releases
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"graham-campbell/manager": "^5.0",
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
"jenssegers/optimus": "^0.2.2|^1.1"
"jenssegers/optimus": "^0.2.2"
},
"require-dev": {
"graham-campbell/testbench": "^6.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9.6|^10.5"
"phpunit/phpunit": "^9.6|^10.5|^11.5.3"
},
"autoload": {
"psr-4": {
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@ services:
working_dir: /app
volumes:
- ./:/app

php84:
container_name: laravel-optimus-lib-84
image: laravel-optimus-lib-84
build:
context: ./
dockerfile: ./.docker/php/php84/Dockerfile
tty: true
working_dir: /app
volumes:
- ./:/app
Loading