spatie/pixelmatch-php
PHP wrapper around pixelmatch for fast, simple image comparison. Generate diff images and measure mismatch percentages to spot visual regressions in tests or validate uploads. Works with common image formats via GD/Imagick depending on setup.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/php-type-graph | 0.89 | Build a graph of all PHP types in your project. Analyze classes, interfaces, enums, and their relationships to understand your codebase structure, dependencies, and type usage. Useful for architecture insights, tooling, and visualization (WIP). | 10 | 10 | 4 | 0 | 0 | 0.7 | — | MIT | 2 years ago | |
| spatie/ray | 0.88 | spatie/ray sends debug output from any PHP app to Ray, Spatie's desktop debugging app. Dump arrays, HTML, queries, and Markdown, measure performance, pause execution, and inspect output with the same syntax you use across Laravel, JavaScript, and more. | 624 | 627 | 102 | 2M | 0 | 35.7 | 55.7 | MIT | 2 days ago | |
| spatie/url | 0.88 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 738 | 751 | 59 | 679K | 0 | 12.4 | 40.9 | MIT | 2 years ago | |
| spatie/php-cloneable | 0.87 | Trait for PHP 8.1+ that makes objects with readonly properties cloneable. Safely “clone with changes” by copying an object while overriding readonly fields—handy until PHP gets native clone-with support. | 97 | 98 | 7 | 207K | 0 | 1.6 | 45.9 | MIT | 2 years ago | |
| spatie/craft-ray | 0.87 | Send debug output from Craft CMS to Ray, Spatie’s desktop debugging app. Inspect arrays, HTML, queries, and more with a consistent API, measure performance, and pause execution. Great for fast feedback across PHP and other languages. | 16 | 16 | 1 | 347 | 0 | 9.4 | 19.3 | MIT | 8 months ago | |
| spatie/test-time | 0.87 | Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... | 208 | 208 | 9 | 246K | 0 | 5.2 | 42.4 | MIT | 2 years ago | |
| spatie/mjml-php | 0.87 | spatie/mjml-php converts MJML email markup into responsive, email-client-ready HTML from PHP. Install with Composer plus the mjml npm package (Node 16+), then use the simple Mjml::new()->toHtml($mjml) API to render MJML without hand-writing HTML. | 282 | 281 | 15 | 239K | 0 | 21.5 | 45.5 | MIT | 3 months ago | |
| spatie/shiki-php | 0.87 | Bring Shiki's beautiful syntax highlighting to PHP. A simple static call highlights code using the same language engine as popular code editors, with 100+ languages and themes plus bundled Antlers and Blade support. | 315 | 317 | 34 | 6M | 0 | 19.6 | 59.9 | MIT | 6 months ago | |
| spatie/fractalistic | 0.87 | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 383 | 385 | 32 | 429K | 0 | 17.2 | 44.3 | MIT | 8 months ago | |
| spatie/php-attribute-reader | 0.86 | Lightweight PHP 8+ utility to read native attributes from classes, methods, properties, and parameters using reflection. Designed for simple, fast attribute discovery in frameworks and libraries, with an API that fits common annotation-style workflows. | 89 | 89 | 2 | 989K | 0 | 21.4 | 65.0 | MIT | 1 day ago | |
| spatie/browsershot | 0.86 | Browsershot renders web pages to images or PDFs using Puppeteer and headless Chrome. Accept HTML, local files, or URLs, run JavaScript, capture body HTML and triggered requests, and customize headless behavior from PHP. | 5,252 | 5,311 | 506 | 3M | 0 | 69.4 | 44.6 | MIT | 1 week ago | |
| spatie/image | 0.86 | spatie/image provides an expressive, chainable PHP API for common image manipulation. Resize to fit a bounding box without altering aspect ratio, apply greyscale, adjust brightness and quality, rotate, sharpen, and save or overwrite images in just a few lines. Ideal for Laravel and PHP apps. | 1,367 | 1,389 | 143 | 4M | 0 | 40.9 | 56.6 | MIT | 3 days ago | |
| meyfa/phpunit-assert-gd | 0.85 | PHPUnit assertions for comparing images via GD. Assert two images (file paths or in-memory GD resources) are identical or differ, with optional similarity thresholds. Provides a simple trait for test cases plus a manual constraint for advanced matching. | 12 | 12 | 5 | 3K | 0 | 4.8 | 32.3 | MIT | 1 year ago | |
| spatie/flare-client-php | 0.85 | The PHP client for Flare: capture errors, exceptions, and traces from PHP 8.2+ apps and send them to Flare for debugging. Works standalone or with Laravel via laravel-flare. | 178 | 178 | 25 | 8M | 0 | 34.9 | 65.0 | MIT | 1 day ago | |
| spatie/regex | 0.85 | Cleaner, safer wrapper around PHP’s preg_* functions. Provides Regex::match/matchAll/replace with MatchResult objects, easy access to groups, sensible defaults, and callback-based replacements—no by-reference variables or confusing false/null error handling. | 1,121 | 1,133 | 49 | 2M | 0 | 11.6 | 43.8 | MIT | 4 years ago | |
| spatie/lighthouse-php | 0.85 | Run Google Lighthouse audits from PHP. Test any URL and retrieve category scores (performance, accessibility, SEO, etc.) and individual audit details. Configure headers, user agent, categories, CPU throttling, and max load wait, then run and parse results. | 270 | 270 | 31 | 20K | 0 | 10.5 | 26.1 | MIT | 11 months ago | |
| spatie/visit | 0.85 | Human-friendly curl for the terminal. Visit any URL and display its response with colorized output (HTML via bat, JSON via jq), plus status code and response time. Supports custom HTTP methods and options like following redirects. | 390 | 390 | 14 | 2 | 0 | 7.5 | 0.0 | — | 1 year ago | |
| spatie/valuestore | 0.85 | Easily store and retrieve simple key-value data in a JSON file. Valuestore offers a lightweight, framework-friendly API for persisting settings, counters, and small bits of state without needing a database, with atomic writes and optional caching. | 763 | 769 | 47 | 70K | 0 | 9.1 | 27.2 | MIT | 1 year ago | |
| spatie/image-optimizer | 0.84 | Optimize PNG, JPG, WEBP, AVIF, SVG and GIF images in PHP by running them through a chain of tools like JpegOptim, Optipng, Pngquant and SVGO. It auto-detects installed binaries and overwrites files in place with smaller versions. | 2,884 | 2,920 | 225 | 5M | 0 | 50.7 | 52.7 | MIT | 3 days ago | |
| spatie/color | 0.84 | PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000). | 386 | 390 | 41 | 1M | 0 | 16.1 | 50.6 | MIT | 8 months ago |
How can I help you explore Laravel packages today?