From c20f0124efb135b879f035351fbf787ef0b30243 Mon Sep 17 00:00:00 2001 From: Mathias Grimm Date: Mon, 20 Jul 2026 14:07:58 -0300 Subject: [PATCH] Rename the namespace to MathiasGrimm\GlimpsePhp GlimpseImg\ becomes MathiasGrimm\GlimpsePhp\, aligning the SDK with the MathiasGrimm vendor namespace used across the other packages. Breaking change: consumers must update their imports. The Composer package name stays mathiasgrimm/glimpse-php. Co-Authored-By: Claude Fable 5 --- README.md | 4 ++-- composer.json | 4 ++-- src/ApiException.php | 2 +- src/AuthException.php | 2 +- src/Client.php | 2 +- src/ForbiddenException.php | 2 +- src/FrameCounter.php | 2 +- src/ImageFormat.php | 2 +- src/ImageInfo.php | 2 +- src/ImageResolution.php | 2 +- src/ImageResult.php | 2 +- src/ProbeResult.php | 2 +- src/RateLimitException.php | 2 +- src/SampleProbe.php | 2 +- src/SizeEstimate.php | 2 +- src/UsagePeriod.php | 2 +- src/UsageSummary.php | 2 +- src/User.php | 2 +- src/ValidationException.php | 2 +- tests/ClientTest.php | 24 ++++++++++++------------ tests/Fixtures/Images.php | 2 +- tests/FrameCounterTest.php | 4 ++-- tests/ImageFormatTest.php | 4 ++-- tests/Pest.php | 2 +- tests/SampleProbeTest.php | 4 ++-- 25 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 6546680..ea81106 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ composer require mathiasgrimm/glimpse-php ``` ```php -use GlimpseImg\Client; -use GlimpseImg\ImageFormat; +use MathiasGrimm\GlimpsePhp\Client; +use MathiasGrimm\GlimpsePhp\ImageFormat; use Illuminate\Http\Client\Factory; $glimpse = new Client(new Factory, 'your-api-token'); diff --git a/composer.json b/composer.json index e8badbc..1818bcb 100644 --- a/composer.json +++ b/composer.json @@ -30,12 +30,12 @@ }, "autoload": { "psr-4": { - "GlimpseImg\\": "src/" + "MathiasGrimm\\GlimpsePhp\\": "src/" } }, "autoload-dev": { "psr-4": { - "GlimpseImg\\Tests\\": "tests/" + "MathiasGrimm\\GlimpsePhp\\Tests\\": "tests/" } }, "scripts": { diff --git a/src/ApiException.php b/src/ApiException.php index 9fadcf3..fd634f0 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -1,6 +1,6 @@ count(Images::animatedGif()))->toBe(3); diff --git a/tests/ImageFormatTest.php b/tests/ImageFormatTest.php index 3a72f37..0753b10 100644 --- a/tests/ImageFormatTest.php +++ b/tests/ImageFormatTest.php @@ -1,7 +1,7 @@ toBe(ImageFormat::Jpg) diff --git a/tests/Pest.php b/tests/Pest.php index d7a1b24..ccab4f9 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,6 +1,6 @@