Laravel API Versioning
Laravel-native API versioning. Version groups and constraints on Route, header, query and path resolution, a controller per version on one cacheable route, and versioned JSON resources.
Packages that plug straight into Laravel: service providers, Eloquent traits, Artisan commands, and Livewire components. Auto-discovered on install, documented end to end, and free under the MIT license.
Everything we ship for Laravel. Each card shows the exact Composer command.
Laravel-native API versioning. Version groups and constraints on Route, header, query and path resolution, a controller per version on one cacheable route, and versioned JSON resources.
Opt-in HTTP idempotency for Laravel routes. Add ->idempotent() to a route and retried requests with the same Idempotency-Key replay the stored response instead of running twice.
One consistent JSON envelope for Laravel API responses. Data, errors, API resources and every paginator, with profiles, structured notifications, request IDs and opt-in exception rendering.
Let any Eloquent model react to any other with configured types such as like and love, or with any emoji where you allow it, in single or multiple mode, with counts and listings ready for Blade and JSON.
Let any Eloquent model favorite any other: favorite, unfavorite and toggle with results that say what changed, a unique index that keeps each pair to one row, and native relations for counts and eager loading.
Let any Eloquent model bookmark any other, with JSON-object metadata on each bookmark: replace or keep it in one call, read it through an immutable value object, and rely on a unique index that keeps each pair to one row.
Let any Eloquent model rate any other, once per rater, with a value on an exact scale and an optional comment: rate() creates or updates and reports which, and averages, counts and distributions come straight from SQL.
Replicate a chosen Eloquent relationship graph into new persisted records, with explicit copy, reuse and skip rules per relation path, in one transaction.
Attach Laravel database notifications to Eloquent models and delete them automatically as soon as any of those models is deleted.
Let any Eloquent model like any other: like, unlike and toggle with results that say what changed, a unique index that keeps each pair to one row, and native relations for counts and eager loading.
Let any Eloquent model follow any other: follow, unfollow and toggle with results that say what changed, a unique index that keeps each pair to one row, and native relations for counts and eager loading.
Store Laravel configuration values in the database, globally or per company, branch or tenant, and merge them into config() with one explicit load call.
Run deployment tasks in Laravel once or on every deploy: Artisan commands, queued jobs and data fixes, tracked in batches with rollback, tags, server targeting and a cross-server lock.
Laravel-native modules discovered by convention, nested at any depth, shipped by Composer packages and overridden locally, autoloaded in every Composer mode.
Typed settings for the whole application, any named scope, or any Eloquent model, stored through a real Setting model with explicit fallback, definitions and validation.
Localized routing for Laravel. Static, cacheable locale-prefixed URLs for websites, and an ordered resolver pipeline (user, session, cookie, Accept-Language) for APIs.
Titles, meta tags, canonical and alternate links, Open Graph and Twitter cards for Laravel, set from controllers, Eloquent models or Blade and printed with one directive.
Hijri dates for Laravel. Convert Carbon dates both ways, print them with @hijri, and validate Hijri input.
Translated Eloquent fields with three storage strategies behind one API, a translations table, a JSON column per field, or a column per field and locale, chosen per model, with fallbacks, typed fields, scopes and commands to move data between them.
Unique slugs for Eloquent models. One property for the common case, any number of slug columns when you need more.
Human-readable numbers, dates, durations and file sizes for Laravel, as static methods, helpers and Blade directives.
Upload files to any Laravel disk with hashed names, image thumbnails, visibility control and secure URLs, through a facade, helpers and an Eloquent model.
Every package follows Laravel's own conventions, so there is nothing new to learn.
Package auto-discovery registers service providers and facades the moment you run Composer.
Traits like translatable, taggable, and has-files drop into your models without changing your schema design.
Publishable configs, migrations, and commands follow the vendor:publish workflow you already use.
Packages are updated for new Laravel releases. Check each package's docs for its supported versions.
Require the package, publish its config if needed, and you are done.
# 1. Install the packagecomposer require pharaonic/laravel-localization # 2. (Optional) publish config and migrations, then pick the packagephp artisan vendor:publish # 3. Service provider is auto-discovered, nothing else to registerQuick answers about Pharaonic's Laravel packages.
Pharaonic offers 22 free, open-source Laravel packages: API Versioning, API Idempotency, API Response, Reacts, Favorites, Bookmarks, Ratings, Deep Replicate, Notification Dependencies, Likes, Follows, Dynamic Config, Executor, Modulator, Settings, Localization, SEO, Hijri, Translatable, Sluggable, Readable and Uploader.
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 framework-agnostic PHP packages work in any Composer project: Symfony, Slim, or plain PHP.