Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
strategy:
matrix:
php: ['8.4']
guzzle: ['^7.5', '^8.0']

name: PHP ${{ matrix.php }}
name: PHP ${{ matrix.php }} / Guzzle ${{ matrix.guzzle }}

steps:
- name: Checkout code
Expand All @@ -30,6 +31,9 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

- name: Pin Guzzle ${{ matrix.guzzle }}
run: composer update "guzzlehttp/guzzle:${{ matrix.guzzle }}" --with-all-dependencies --no-interaction --no-progress

- name: Run Pint (code style)
run: composer lint -- --test

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).

## [2.5.2] - 2026-09-01

### Changed
- Allow `guzzlehttp/guzzle` `^8.0` alongside `^7.5`. Fresh Laravel 13 installs now lock Guzzle 8, which made `composer require lettr/lettr-php` (and `lettr/lettr-laravel`) unresolvable without `-W`. No code changes were needed — the client only uses `Client::request()` with `headers`/`json`/`query` options, which are unchanged in Guzzle 8. The test suite and a live API smoke test pass on both Guzzle 7.15 and 8.1.

## [2.5.1] - 2026-08-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": "^8.4",
"guzzlehttp/guzzle": "^7.5"
"guzzlehttp/guzzle": "^7.5 || ^8.0"
},
"require-dev": {
"laravel/pint": "^1.18",
Expand Down
2 changes: 1 addition & 1 deletion src/Lettr.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class Lettr
* single source of truth for the version and will be removed in
* a future major release.
*/
public const VERSION = '2.5.1';
public const VERSION = '2.5.2';

/**
* The API base URL.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/LettrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
})->throws(InvalidArgumentException::class, 'Unknown service: unknownService');

test('has correct version constant', function (): void {
expect(Lettr::VERSION)->toBe('2.5.1');
expect(Lettr::VERSION)->toBe('2.5.2');
});

test('has correct base url constant', function (): void {
Expand Down
Loading