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

Symfony Ruler Bundle Laravel Package

hoathis/symfony-ruler-bundle

Symfony bundle that integrates Hoa\Ruler, a lightweight business rules engine, into Symfony applications. Define and evaluate dynamic rules with service configuration and dependency injection support for cleaner, configurable business logic.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Configurable business logic vs. hardcoded conditionals. The underlying idea (Hoa\Ruler: a small DSL for expressing rules like user.age > 18 and cart.total > 50) directly supports decisions about whether pricing, eligibility, discounting, and routing logic should live in code or in data that ops can edit. That's a real roadmap question with time-to-market implications.
  • Build vs. buy for a rules layer. This package is a reference architecture, not a candidate dependency. It informs the "do we write our own evaluator, adopt an expression library, or buy a rules/BPM product" conversation.
  • Use cases worth scoping: promo and coupon eligibility, shipping/tax threshold rules, trial and plan entitlement gating, approval-workflow routing, risk/fraud scoring bands, and notification suppression rules — all areas where business stakeholders ask for changes faster than release cadence.
  • Empowerment of non-engineering teams. A safe rule DSL shortens the loop between "marketing wants a new eligibility criterion" and shipped behavior, and creates an auditable artifact of why a decision was made — useful for support and compliance.
  • What this package does not support: nothing in production. It is a Symfony2 bundle, archived, last released 2016, 15 stars, zero dependents. Any decision it "supports" is conceptual.

When to Consider This Package

Consider the pattern (not the dependency) when:

  • You have recurring, stakeholder-driven rule changes and each one currently burns an engineering sprint.
  • Rules are simple, declarative, and side-effect-free (predicates over a context object).
  • You need explainability — a rule string a human can read and audit beats a buried if chain.
  • You can accept evaluating untrusted-ish expressions in a sandboxed evaluator with a whitelisted context.

Look elsewhere — and you almost certainly should — when:

  • You're on Laravel. This is a Symfony 2 bundle with a DI extension and service wiring. It will not integrate; there is no Laravel adapter here. Full stop.
  • You're on PHP 8+. Hoa\Ruler's lineage is PHP 5.5/7.x era; the bundle is a decade stale and incompatible with modern Symfony (5/6/7) or Laravel 10/11.
  • License clarity matters. The license is NOASSERTION — no declared, vetted license. Legal/compliance cannot approve that for a commercial product without manual investigation.
  • You need maintenance, security patching, or an SLA. Archived + zero dependents = you are the maintainer on day one.
  • You need a rule builder UI, versioning, audit trails, or multi-tenant rule sets. None of that exists here.
  • Evaluation is hot-path. Interpreted DSL evaluation per request needs benchmarking; a compiled/cached approach is usually better.

Viable alternatives to evaluate instead: Symfony ExpressionLanguage (if Symfony), a small in-house predicate evaluator over a JSON schema, RulerZ-style filtering libraries, or Laravel's native validation/rule objects for simpler cases.

How to Pitch It (Stakeholders)

To executives: We evaluated a rules-engine approach for business-configurable logic. The concept is valuable — it lets ops change eligibility and pricing thresholds without a deploy, cutting time-to-market from weeks to hours and reducing engineering toil. The package itself is not adoptable: it is abandoned (last release 2016), tied to an obsolete framework version, has an unclear license, and has no user base to inherit fixes from. Recommendation: fund a short spike (1–2 sprints) to build a thin, owned rules layer on a maintained expression library, rather than take on an unmaintained dependency and its liability.

To engineering: Treat hoathis/symfony-ruler-bundle as prior art only. Do not vendor it. If we pursue a rules layer, we own it: a parser/evaluator over a whitelisted context, deterministic and side-effect-free, with golden-file tests, rule versioning, and an audit log of evaluated inputs and outcomes. Budget for the DSL surface area — that, not the evaluator, is where the cost lives.

Bottom line: Pattern: yes. Package: no. Score it as research input, not a build dependency.

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