{"repo":"wooserv/laravel-objectid","free":true,"listed":false,"github":"https://github.com/wooserv/laravel-objectid","clone":"git clone https://github.com/wooserv/laravel-objectid.git","description":"Elegant ObjectId generator for Laravel models with migration macro & helper.","language":"PHP","stars":51,"topics":["laravel","laravel-package","objectid","laravel-framework","mysql","php","postgresql","ulid","uuid"],"license":"MIT","category":"databases-storage","readme_excerpt":"⚡ Laravel ObjectId Elegant, fast ObjectId generator for Laravel models — with automatic ID assignment, migration macro, and helper function. Laravel ObjectId brings the power and efficiency of MongoDB-style ObjectIds to your Eloquent models — with no database dependency. It’s a drop-in, ultra-fast unique ID system that fits seamlessly into Laravel’s model lifecycle. With this package, you can: Automatically assign 24-character hex ObjectIds to your models. Use $table- objectId() directly in your migrations. Generate IDs anywhere using the global objectid() helper. Enjoy compact, sortable, timestamp-encoded identifiers — 3× faster than UUIDs . Built for performance, readability, and developer happiness. --- Perfect for: Large-scale Laravel apps Multi-database systems UUID/ULID replacements Caching and indexing optimization --- Installation This package is auto-discovered by Laravel. No manual provider registration needed. --- Usage 1. Model Now every new record gets a unique ObjectId automatically: --- 2. Migration Macro The service provider automatically adds a new macro to the schema builder: Optionally: --- 3. Helper Function --- Why Laravel ObjectId? Feature ObjectId UUID ULID ------------------ ---------------- ----------------- ----------- Sortable ✅ Yes ❌ No ✅ Yes Length 24 chars 36 chars 26 chars Contains Timestamp ✅ Yes ❌ No ✅ Yes Index Friendly ✅ Yes ⚠️ Larger Indexes ✅ Yes Collision Chance 🔒 Extremely Low 🔒 Very Low 🔒 Very Low --- Testing Runs a full PHPUnit suit","default_branch":null,"files":null,"tree":[],"storefront":"/r/wooserv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wooserv/laravel-objectid/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}