spatie/laravel-prefixed-ids
Generate friendly Stripe-like prefixed IDs for Laravel Eloquent models (e.g., user_xxx). Add a trait to models, create and store prefixed IDs, and resolve models from a prefixed ID via findByPrefixedId or automatic model detection.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-data | 0.83 | Create rich, typed data objects for Laravel that replace form requests and API transformers. Automatically map from requests, validate with inferred rules, transform to resources (with lazy/partial fields), and generate TypeScript definitions from the same source. | 1,757 | 1,760 | 282 | 2M | 3 | 47.5 | 49.2 | MIT | 4 weeks ago | |
| hexify/laravel-id-customizer | 0.82 | Laravel package for generating custom IDs for models or any table column. Create prefixed incremental IDs (with optional reset on prefix change) or random IDs with configurable length, character set, and extras. Use via a controller helper or a model trait. | 2 | 2 | 0 | 0 | 0 | 0.3 | — | MIT | 4 years ago | |
| rossbearman/eloquent-calamari | 0.81 | — | 4 | 4 | 1 | 119 | 0 | 18.0 | 22.0 | MIT | 2 months ago | |
| spatie/laravel-blink | 0.80 | Request-scoped in-memory cache for Laravel. Use the blink() helper or facade to store and retrieve values for the duration of a single request, with helpers like once(), get/put, wildcard key prefixes, increment, forget/flush, plus ArrayAccess and Countable support. | 162 | 163 | 14 | 47K | 0 | 21.6 | 38.3 | MIT | 3 months ago | |
| deligoez/laravel-model-hashid | 0.80 | — | 166 | 166 | 21 | 5K | 0 | 23.2 | 24.1 | — | 1 month ago | |
| testmonitor/eloquent-incrementable | 0.80 | — | 7 | 7 | 3 | 365 | 0 | 2.9 | 23.1 | MIT | 1 year ago | |
| c4ys/doctrine-snowflakes-bundle | 0.80 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| avanzu/sf-doctrine-prefix-bundle | 0.80 | — | 4 | 4 | 2 | 0 | 0 | 0.2 | — | — | — | |
| netsells/hash-model-ids | 0.79 | — | 0 | 0 | 1 | 363 | 0 | 1.5 | 35.4 | — | 2 years ago | |
| cirlmcesc/laravel-hashids | 0.79 | Laravel package to obfuscate model IDs and route parameters using Hashids. Adds a model trait that automatically encodes ID and *_id fields on serialization, decodes for route model binding, and provides helper methods plus Artisan install/test commands. | 1 | 1 | 0 | 0 | 0 | 19.4 | — | MIT | 3 months ago | |
| chellem/doctine-prefixr-bundle | 0.79 | — | 0 | 1 | 2 | 0 | 0 | 0.0 | — | GPL-2.0 | — | |
| symfony/uid | 0.79 | Symfony UID component offers an object-oriented API to generate and work with unique identifiers. Includes ULIDs and UUIDs (v1 and v3–v8), with implementations compatible with both 32-bit and 64-bit systems for consistent, portable IDs. | 611 | 616 | 12 | 11M | 0 | 32.8 | 64.4 | MIT | 4 weeks ago | |
| snortlin/nano-id | 0.79 | Laravel-friendly NanoID generator for PHP: create short, URL-safe, collision-resistant IDs with configurable length and alphabet. Simple API, lightweight and fast—ideal for public identifiers, tokens, and model keys without exposing sequential IDs. | 4 | 4 | 0 | 2K | 0 | 1.5 | 35.4 | MIT | 11 months ago | |
| veelasky/laravel-hashid | 0.79 | — | 45 | 46 | 18 | 6K | 0 | 23.9 | 34.1 | MIT | 2 months ago | |
| alimarchal/id-generator | 0.79 | Generate unique, professional document IDs in Laravel (PREFIX-YYYYMMDD-XXXX) with transaction safety and race-condition protection. Ideal for invoices, complaints, orders, quotations, and more. Compatible with Laravel 11/12, scalable for high volume. | 0 | 0 | 0 | 12 | 0 | 4.7 | 15.9 | MIT | 9 months ago | |
| dyrynda/laravel-model-uuid | 0.78 | — | 481 | 481 | 54 | 78K | 1 | 29.2 | 35.8 | MIT | 2 months ago | |
| michalkortas/laravel-uuid | 0.78 | — | 2 | 2 | 0 | 0 | 0 | 1.5 | — | — | 5 years ago | |
| parables/laravel-cuid2 | 0.78 | — | 7 | 7 | 0 | 275 | 2 | 1.9 | 21.5 | MIT | 11 months ago | |
| borsaco/doctrine-prefix-bundle | 0.77 | — | 8 | 8 | 1 | 14 | 2 | 1.4 | 5.6 | BSD-3-Clause | 6 years ago | |
| goldspecdigital/laravel-eloquent-uuid | 0.77 | — | 510 | 510 | 45 | 12K | 0 | 9.6 | 19.2 | MIT | 3 years ago |
How can I help you explore Laravel packages today?