Framework-Agnostic, Composer-Native

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.

8
Packages
MIT
Free & open source
PSR
Standards compliant
76.3K
Downloads

Libraries That Go Anywhere

None of these packages require a framework. Each card shows the exact Composer command.

v8.5.x

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.

composer require pharaonic/php-diff
1 Stars 11 Installs
v8.5.x

Fingerprint

Deterministic fingerprints of PHP data, whatever the key order, plus ordered HMAC signatures for payment gateways and webhooks.

composer require pharaonic/php-fingerprint
1 Stars 23 Installs
v8.5.x

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().

composer require pharaonic/php-smart-enum
1 Stars 637 Installs
v8.5.x

Readable

Human-friendly formatting for plain PHP. Turn numbers, byte sizes, money and durations into readable text, with predictable output and optional Intl locales.

composer require pharaonic/php-readable
1 Stars 2K Installs
v8.5.x

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.

composer require pharaonic/php-rss
1 Stars 804 Installs
v8.5.x

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.

composer require pharaonic/php-hijri
8 Stars 49.7K Installs
v8.5.x

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.

composer require pharaonic/php-slugify
9 Stars 8.9K Installs
v8.5.x

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.

composer require pharaonic/php-dot-array
10 Stars 14.3K Installs

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.

Terminal
# Install
composer require pharaonic/php-dot-array
 
// Use it anywhere Composer's autoloader is loaded
require __DIR__ . '/vendor/autoload.php';
FAQ

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.