Laravel Payments
Laravel Payments is a flexible plans and subscription management system for Laravel. Originally forked
from bpuig/laravel-subby and rinvex/laravel-subscriptions.
What it does
The way this package is made:
- There are plans that have features.
- There is an entity (morph) receiving the
trait
HasSubscriptions
(subscriptions). It can be a user, a team, whatever you
want; see Attach Subscriptions to model.
- This entity can have many subscriptions to one or more plans and use their features and other features not attached
to a plan. The subscription is made as a “snapshot” of current plan details. If plan is modified in the future,
subscriber’s subscription stays as it was, price, invoicing and features are “frozen” unless manually synchronized
with related plan.
Other features
- Schedule: Ability to schedule one or multiple plan changes in the future.
Considerations
- Payments and translations are out of scope for this package.
- You may want to extend some core models, in case you need to override the logic behind some helper methods
like
renew()
, cancel()
etc. E.g.: when cancelling a subscription you may want to also cancel the recurring payment
attached.
Changelog
Refer to the Releases for a changelog of the project.
License
Forked originally from bpuig/laravel-subby and rinvex/laravel-subscriptions. Thank you for
creating the original!
This software is released under The MIT License (MIT).
© 2020-2021 B. Puig, Some rights reserved.