PHPackages                             antcool/laravel-optimus-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. antcool/laravel-optimus-factory

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

antcool/laravel-optimus-factory
===============================

A can configure multiple jenssegers/optimus instances for Laravel package

1.2.2(3y ago)058MITPHPPHP ^8.1

Since Sep 13Pushed 3y agoCompare

[ Source](https://github.com/lonquan/laravel-optimus-factory)[ Packagist](https://packagist.org/packages/antcool/laravel-optimus-factory)[ Docs](https://github.com/lonquan/laravel-optimus-factory)[ RSS](/packages/antcool-laravel-optimus-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (15)Versions (7)Used By (0)

laravel-optimus-factory
=======================

[](#laravel-optimus-factory)

A can configure multiple jenssegers/optimus instances package for Laravel

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require antcool/laravel-optimus-factory
```

You can publish the config file with:

```
php artisan vendor:publish --tag=optimus-factory-config
```

Generate a new set of prime config

```
php artisan optimus:generate scene 31
```

Usage
-----

[](#usage)

```
OptimusFactory::encode(1) // 1985404696
OptimusFactory::decode(1985404696) // 1

OptimusFactory::make('scene')->encode(1) // 1059890159
OptimusFactory::make('scene')->decode(1059890159) // 1
```

Model Trait
-----------

[](#model-trait)

```
use AntCool\OptimusFactory\Traits\UseOptimusId;
class User extends Model
{
    use UseOptimusId;

    // encoded field
    protected string $encodeKey = 'user_id';

    // scene key in config
    protected string $encodeScene = 'user';
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity60

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~41 days

Recently: every ~52 days

Total

6

Last Release

1130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/473d9234b25803aa72515f11bb87e5a093ca4ff1eac5952ecdf0dfc09e46c0ec?d=identicon)[lonquan](/maintainers/lonquan)

---

Tags

laravellaravel-optimus-factoryjenssegers-optimus

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/antcool-laravel-optimus-factory/health.svg)

```
[![Health](https://phpackages.com/badges/antcool-laravel-optimus-factory/health.svg)](https://phpackages.com/packages/antcool-laravel-optimus-factory)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
