Download the PHP package escolalms/payments without Composer

On this page you can find all versions of the php package escolalms/payments. 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 payments

Payments

swagger codecov phpunit downloads downloads downloads Maintainability Mutation testing badge

Purpose

This package lets you create Payments and process them using integrations with external payment providers (gateways).

Dependencies

Installation

Usage

Facades

Payments Facade

Use EscolaLms\Payments\Facades\Payments for starting payment processing. You can create PaymentProcessor` either from a model using Payable trait or from precreated Payment object.

PaymentGateway Facade

With EscolaLms\Payments\Facades\PaymentGateway you can call payment provider gateways directly.

For existing payment you can for example do:

Important: This will not save Payment object.

To use specific driver, you can call

Available payment drivers

Payable Trait & Interface

Payable trait and interface are the core of this package, enabling simplified calling of PaymentsService and GatewayManager. When you include it in your model that represents a Payable (for example Cart or Order or Product) you can begin payment processing for that Payable by calling $payable->process() which calls Payments::processPayable($this) and automatically creates a Payment and returns a PaymentProcessor instance for that Payment.

EscolaLms\Cart package uses this trait and interface in EscolaLms\Cart\Models\Order.

Payment Processor

EscolaLms\Payments\Entities\PaymentProcessor is a special class which wraps around Payment and contains functionality related to processing that payment, for example generating links to payment gateways, automatically setting payment status after purchase, emiting events related to payment status, etc.

PaymentProcessor automatically selects free driver when payment amount equals 0.

Payment Model

This package defines a EscolaLms\Payments\Models\Payment which contains all data abount given payment required for payment gateways to work.

Endpoints

All the endpoints are defined in swagger.

Tests

Run ./vendor/bin/phpunit to run tests. See tests/Mocks/Payable as an example how a Payable is defined.

Test details: codecov phpunit

Events

Listeners

No Listeners are defined in this package.

How to use this package on Frontend

Admin Panel

Left Menu

List of Payments

Permissions

Permissions are defined in Seeder.

Roadmap. Todo. Troubleshooting


All versions of payments with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
laravel/framework Version >=8.0
escolalms/core Version ^1
league/omnipay Version ^3
omnipay/stripe Version ^3.1
escolalms/przelewy24-php Version ^0
maatwebsite/excel Version ^3.1
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 escolalms/payments contains the following files

Loading the files please wait ....