PHP Packages
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.
Libraries That Go Anywhere
None of these packages require a framework. Each card shows the exact Composer command.
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.
Fingerprint
Deterministic fingerprints of PHP data, whatever the key order, plus ordered HMAC signatures for payment gateways and webhooks.
Smart Enum
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().
Readable
Human-friendly formatting for plain PHP. Turn numbers, byte sizes, money and durations into readable text, with predictable output and optional Intl locales.
RSS
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
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.
Slugify
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.
Dot Array
Read, write, check and delete values in deeply nested PHP arrays with dot-notation paths like user.profile.name and wildcards like users.*.email.
No Framework Required
Built to fit into any codebase, including one that has no framework at all.
Portable
One API across Laravel, Symfony, Slim, and plain PHP. Switch frameworks without switching libraries.
PSR Compliant
PSR-4 autoloading and standard interfaces, so they plug into existing containers, loggers, and HTTP clients.
Strictly Typed
Written for modern PHP with typed properties and native enums, and checked by static analysis.
Fits Any Framework
Use them in plain PHP, or inside your Laravel, Livewire and Filament apps.
Install in Seconds
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';PHP Packages Questions
Quick answers about Pharaonic's PHP packages.
Which PHP packages does Pharaonic offer?
Pharaonic offers 8 free, open-source PHP packages: Diff, Fingerprint, Smart Enum, Readable, RSS, Hijri, Slugify and Dot Array.
Are Pharaonic's PHP packages free?
Yes. Every package is open source under the MIT license, so you can use it in personal and commercial projects.
How do I install a Pharaonic PHP package?
Each package installs with a single Composer command, composer require pharaonic/<package>. The exact command, requirements, and documentation are on each package's page.
How do I get help with a PHP package?
Open an issue on the package's GitHub repository, ask in GitHub Discussions, chat with us on Discord, or contact us.
Building With Laravel?
Our Laravel packages add Eloquent traits, Artisan commands, and Livewire components on top of the framework.