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

Laravel Couponables Laravel Package

michael-rubel/laravel-couponables

Laravel Couponables adds coupon and voucher support to any Eloquent model. Create redeemable codes, attach them polymorphically to users or orders, and enforce usage limits, expiry dates, and per-model redemption rules through a clean, extensible API.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Promo-code MVP scope: Supports launching basic promotional codes—code validity, redemption tracking, expiration, usage limits, and polymorphic attachment to users, orders, subscriptions, teams, or other domain entities—without building the full data model from scratch.
  • Build vs. buy/borrow: An MIT Laravel package can reduce initial engineering effort for coupon persistence and redemption mechanics. Saved effort should go toward checkout UX, admin tooling, pricing rules, analytics, fraud controls, and customer support workflows.
  • Roadmap sequencing: Helps decide whether promotions are a core revenue lever or a commodity feature. Start with simple redemption mechanics, validate demand, then invest in advanced capabilities only if promotions become strategically important.
  • Use-case fit: Appropriate for acquisition codes, partner/affiliate codes, seasonal discounts, referral or loyalty credits, beta invites, and account-level credits attached to different entities via Eloquent relationships.
  • Domain-model decision: Encourages standardizing coupon ownership and redemption audit trails instead of ad-hoc promo fields scattered across models. Use it behind a service/interface boundary so the package is replaceable.
  • Platform-fit input: The 9.0.2 release adds Laravel 12 support and tests against PHP 8.4, keeping the package aligned with current framework/runtime versions. This removes a compatibility blocker for teams on (or planning to move to) Laravel 12, but does not change the underlying risk posture—low stars and zero dependents mean it remains an accelerator, not a strategic platform dependency. Validate through a time-boxed spike and assess fit against near-term roadmap needs.

When to Consider This Package

  • Consider it when the product is a Laravel/Eloquent application (now including Laravel 12 / PHP 8.4 environments) and needs basic promo-code infrastructure: coupon records, validity checks, redemption relationships, expiration, and usage limits.
  • Good fit when the team needs speed-to-market, can tolerate community-package risk, and is willing to own the surrounding product logic: discount calculation, checkout validation, UI, admin screens, reporting, and edge cases.
  • Consider it when coupons must attach polymorphically to different entities—users, orders, subscriptions, teams—and the team wants a conventional Laravel relationship model rather than a bespoke schema.
  • Look elsewhere or build internally when promotions are core to pricing and require complex rules: stacking/exclusions, cart-level discount allocation, tax/accounting treatment, multi-currency support, B2B contracts, approval workflows, fraud/abuse controls, multi-tenant isolation, experimentation, or high-volume audit/compliance requirements.
  • Because the package has low ecosystem adoption and zero dependents, require code review, security review, Laravel/PHP compatibility checks (confirm Laravel 12 and PHP 8.4 support against your target matrix; older framework versions may sit on prior 9.x releases), test coverage around redemption constraints, version pinning, and a maintenance/exit plan. If financial accuracy or compliance is critical, keep the promotion domain in-house.

How to Pitch It (Stakeholders)

  • Executive summary: This is a low-cost, MIT-licensed Laravel package that can accelerate a promo-code MVP by providing coupon/redemption primitives. The latest 9.0.2 release keeps it current with Laravel 12 and PHP 8.4, so it fits modern stacks. It is not a full promotions platform; it helps validate whether promotions deserve further investment before we build differentiated rules, admin tooling, analytics, and fraud controls.
  • Engineering summary: It offers Eloquent polymorphic coupon and redemption mechanics, now compatible with Laravel 12 and tested on PHP 8.4. We remain responsible for discount calculation, checkout integration, validation policy, reporting, and edge cases. Integrate it behind an internal promotion service/interface, pin the version, and add tests for redemption limits, expiration, and ownership constraints. The 9.0.2 update is a compatibility/maintenance release with no breaking changes and is a low-risk adoption signal.
  • Recommended decision: Approve a time-boxed spike rather than org-wide adoption. Success criteria: basic validity/redemption needs are met, integration is clean, package risk is acceptable given its low adoption, and the team can swap it out if requirements grow.
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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator