PHP Diff
Semantic diffs of PHP arrays and objects, with paths, identity-aware lists, moves and redaction, plus GitHub-style text diffs with hunks, unified patches and HTML.
Plain PHP libraries with no framework lock-in. They follow PSR standards and work the same in Laravel, Symfony, Slim, or a single script. Documented end to end and free under the MIT license.
None of these packages require a framework. Each card shows the exact Composer command.
Semantic diffs of PHP arrays and objects, with paths, identity-aware lists, moves and redaction, plus GitHub-style text diffs with hunks, unified patches and HTML.
Deterministic fingerprints of PHP data, whatever the key order, plus ordered HMAC signatures for payment gateways and webhooks.
One trait that adds framework-independent helpers to native PHP enums, such as names, values, labels, options, lookup by case name, strict comparisons and isActive() style case checks, without replacing cases(), from() or tryFrom().
Human-friendly formatting for plain PHP. Turn numbers, byte sizes, money and durations into readable text, with predictable output and optional Intl locales.
A lightweight, dependency-free RSS 2.0 feed generator for PHP 8, with a fluent API, strict validation, and built-in Atom, Content, Dublin Core, and Media RSS extensions.
Hijri (Islamic) date support for PHP built on Carbon. Convert Gregorian dates to Hijri and back, parse Hijri strings, and format month names in Arabic or English.
Framework-agnostic slug generation for PHP. Keep Unicode or transliterate to ASCII, use any separator, split camelCase and acronyms, and add your own replacement rules.
Read, write, check and delete values in deeply nested PHP arrays with dot-notation paths like user.profile.name and wildcards like users.*.email.
Built to fit into any codebase, including one that has no framework at all.
One API across Laravel, Symfony, Slim, and plain PHP. Switch frameworks without switching libraries.
PSR-4 autoloading and standard interfaces, so they plug into existing containers, loggers, and HTTP clients.
Written for modern PHP with typed properties and native enums, and checked by static analysis.
Use them in plain PHP, or inside your Laravel, Livewire and Filament apps.
Any Composer project works. Require the package and use it.
# Installcomposer require pharaonic/php-dot-array // Use it anywhere Composer's autoloader is loadedrequire __DIR__ . '/vendor/autoload.php';Quick answers about Pharaonic's PHP packages.
Pharaonic offers 8 free, open-source PHP packages: Diff, Fingerprint, Smart Enum, Readable, RSS, Hijri, Slugify and Dot Array.
Yes. Every package is open source under the MIT license, so you can use it in personal and commercial projects.
Each package installs with a single Composer command, composer require pharaonic/<package>. The exact command, requirements, and documentation are on each package's page.
Open an issue on the package's GitHub repository, ask in GitHub Discussions, chat with us on Discord, or contact us.
Our Laravel packages add Eloquent traits, Artisan commands, and Livewire components on top of the framework.