Download the PHP package smskin/laravel-billing without Composer

On this page you can find all versions of the php package smskin/laravel-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 laravel-billing

Billing Module for Laravel Projects

Description

This module supports both synchronous and asynchronous interaction with billing.

Concept

Any object can participate in billing. To do this, simply implement the Billingable interface and include the BillingableTrait. The billing system doesn't care if it's an object in the database or just a class with statically declared properties.

Applications:

Installation

This will create:

If necessary, you can change the table name for storing billing operations in the configuration file ().

Basic Usage

To start using billing, you need to create an object that implements the Billingable interface. For convenience, a Trait is prepared, which implements part of the interface methods - BillingableTrait.

Now you can create an instance of the User1 object and get its balance in the system:

Balance = sum of incoming operations - sum of outgoing operations

Module Features

getBalances

Sometimes it's necessary to retrieve the balances of multiple entities simultaneously.

increaseBalance

This method is necessary to replenish the entity's balance from outside the system.

In synchronous execution, you may receive one of the Exceptions:

In asynchronous execution, one of the events will be sent to the EventBus:

Both events will pass the input attributes, and the EBalanceIncreaseFailed event will pass an instance of Exception.

decreaseBalance

This method is necessary to withdraw funds from the entity's balance in the system.

In synchronous execution, you may receive one of the Exceptions:

In asynchronous execution, a restart is provided after 5 seconds when MutexException is received.

In asynchronous execution, one of the events will be sent to the EventBus:

Both events will pass the input attributes, and the EDecreaseBalanceFailed event will pass an instance of Exception.

transfer

This method is used to transfer funds from one entity's balance to another entity's balance.

In synchronous execution, you may receive one of the Exceptions:

In asynchronous execution, a restart is provided after 5 seconds when MutexException is received.

In asynchronous execution, one of the events will be sent to the EventBus:

Both events will pass the input attributes, and the ETransferFailed event will pass an instance of Exception.

transferToMultipleRecipients

This method is used to transfer funds to multiple recipient entities.

In synchronous execution, you may receive one of the Exceptions:

In asynchronous execution, a restart is provided after 5 seconds when MutexException is received.

In asynchronous execution, one of the events will be sent to the EventBus:

Both events will pass the input attributes, and the EBulkTransferFailed event will pass an instance of Exception.

createOperationsReport

Method for generating a balance report. Under development.


All versions of laravel-billing with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^8 || ^9 || ^10 || ^11 || ^12
smskin/laravel-support Version ^3.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 smskin/laravel-billing contains the following files

Loading the files please wait ....