Download the PHP package koverae/koverae-billing without Composer

On this page you can find all versions of the php package koverae/koverae-billing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package koverae-billing

Koverae Billing

Latest Version on Packagist Total Downloads GitHub Actions

Sparkline

Koverae Billing - Manage plans, trials, and payments with clean, extensible logic.

[Documentation] [Get Started]

Support Policy

Version Laravel PHP Release date End of improvements End of support
1.x [LTS] ^11.0, ^12.0 8.2,8.3,8.4 Apr 07, 2025 May 1, 2026 Sep 6, 2026

Upgrade Guide

To perform the migration, you will be helped by the instruction.

Community

I want to create a cozy place for developers using the Koverae Billing package. This will help you find bugs faster, get feedback and discuss ideas.

telegram

Telegram: @koverae_billing

Usage

Once installed and configured, using koverae-billing is straightforward and developer-friendly.

Models

koverae-billing uses this models:

Add Billing Support to a Model

To start, add the HasSubscriptions trait to any model you want to make billable (typically the User model):

Subscribing a User to a Plan

You can subscribe a user (or any model correctly traited) to a plan by using the newSubscription() function available in the HasSubscriptions trait. First, retrieve an instance of your subscriber's model, which typically will be your user model and an instance of the plan your subscriber is subscribing to. Once you have retrieved the model instance, you may use the newSubscription method to create the model's subscription.

Checking a User’s Subscription

For a subscription to be considered active one of the following must be true:

Alternatively you can use the following methods available in the subscription model:

Cancel or Resume a Subscription

Renew a Subscription

To renew a subscription you may use the renew method available in the subscription model. This will set a new ends_at date based on the selected plan.

Canceled subscriptions can't be renewed. Renewing a subscription with trial period ends it.

When a subscription has already ended time ago and now is renewed, period will be set as if subscription started today, but when a subscription is still ongoing and renewed, start date is kept and end date is extended by the amount of periods specified

Cancel a Subscription

To cancel a subscription, simply use the cancel method on the user's subscription:

Immediatly

By default the subscription will remain active until the end of the period, you may pass true to end the subscription immediately:

Fallback plan

If a fallback_plan_tag is not null in config, when cancel is called, subscription will not be canceled but changed to fallback plan.

To cancel subscription and ignore fallback, a second parameter is available on cancel method:

Uncancel a Subscription

To uncancel a subscription, simply use the uncancel method on the user's subscription:

Scopes

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

License

Forked originally from bpuig/laravel-subby. Thank you for creating the original! :)

The MIT License (MIT). Please see License File for more information.

© 2025 | Arden BOUET, Some rights reserved.


All versions of koverae-billing with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.3
illuminate/support Version ^11.0 || ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package koverae/koverae-billing contains the following files

Loading the files please wait ....