Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Orm Laravel Package

analogue/orm

Analogue is a flexible data-mapper ORM for PHP and Laravel. It separates domain models from mappers and repositories, offering fluent query building, eager-loaded relations, collections and clean persistence without the active-record constraints of Eloquent.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Architecture direction (Active Record vs. Data Mapper): Informs whether the product's persistence layer should keep domain objects ignorant of the database. Analogue's Data Mapper approach supports rich domain models, value objects, embeddables, and inheritance mapping — decisions that shape long-term maintainability of complex domains.
  • Build vs. buy for the persistence layer: Gives the team a concrete off-the-shelf option to evaluate against Eloquent, Doctrine, or a bespoke mapper. This is a "buy/borrow" candidate only if the org accepts ownership of an unmaintained dependency; otherwise it becomes a "build/fork" decision.
  • Feature scoping for complex domains: Useful signal for roadmap items like order management, billing, workflow engines, or content models with polymorphic/inheritance hierarchies — areas where identity map, unit of work, and aggregate-oriented persistence reduce ad-hoc glue code.
  • Modernization and migration planning: If legacy code uses Active Record and the roadmap calls for DDD-style bounded contexts, Analogue can inform a phased migration strategy (coexistence, strangler pattern) — provided a maintained fork or successor is chosen.
  • Team and hiring decisions: Adopting a Data Mapper ORM signals a preference for engineers comfortable with repositories, mappers, and unit-of-work semantics; this feeds into hiring profiles, onboarding plans, and internal standards.
  • Risk and lifecycle planning: The package's last release (April 2020), zero dependents, and low opportunity score (3.77) make it a data point for dependency governance — supporting decisions on whether to standardize on it, fork it, or explicitly exclude it from the approved stack.

When to Consider This Package

Adopt or evaluate when:

  • The domain is genuinely complex (multiple aggregates, inheritance hierarchies, value objects) and the team wants persistence-ignorant models rather than Eloquent's Active Record coupling.
  • You need identity map and unit-of-work semantics for transactional consistency and change tracking that Eloquent does not natively provide.
  • The team has DDD experience or is investing in it, and can absorb the extra mapping/configuration overhead.
  • You are on a PHP 7.x-era stack (or are prepared to fork and maintain compatibility for PHP 8+/current Laravel).
  • You want something more structured than Eloquent but lighter-weight and Laravel-native compared to Doctrine ORM.

Look elsewhere when:

  • You need supported, maintained dependencies — with no releases since 2020 and no dependent packages, assume you will own the code. Prefer Doctrine ORM (with Laravel Doctrine) or Eloquent.
  • The application is predominantly CRUD; Eloquent's simplicity and ecosystem will outperform a Data Mapper in both velocity and support.
  • Security patching, PHP/Laravel version currency, or vendor SLAs are hard requirements.
  • The team lacks Data Mapper experience and the roadmap cannot absorb the learning curve and boilerplate.
  • You need a mature ecosystem of profiling, migrations, and third-party tooling that Analogue does not offer at scale.

How to Pitch It (Stakeholders)

To executives: Analogue ORM is a technically elegant option for products with complex business domains, because it keeps business logic cleanly separated from database code — improving testability and long-term maintainability. However, it has not been released since April 2020, has no downstream dependents listed, and scores low on opportunity (3.77). Recommendation: do not make it a platform bet for core roadmap delivery. Treat it as a candidate only for a time-boxed spike or as a reference architecture, and budget for owning/forking it if we proceed. The safer alternatives are Eloquent for speed and Doctrine for structured domains.

To engineering: Analogue offers a Laravel-friendly Data Mapper with identity map, unit of work, repositories, embeddables, and inheritance mapping — a strong fit if we commit to DDD and hexagonal architecture. The trade-off is explicit: more boilerplate and a dependency we must maintain. Proposed next step is a two-week spike comparing Analogue, Doctrine + Laravel Doctrine, and Eloquent against one representative bounded context, scoring on fit, maintenance cost, and upgrade path to current PHP/Laravel. Decision gate: only adopt if the spike shows clear domain-complexity payoff and we accept fork ownership.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource