Skip to content
Alexey Pavlyuts edited this page Jan 3, 2023 · 5 revisions

PortaOne Billing API and Events wrapper for PHP

Purpose

This package intended to simplify communication to PortaOne billing system while creating user portal applications, integration and provisioning code. Build for composer with PSR-4 autoload, uses PSR-3 object for logging.

Not properly tested, use at your own risk!

There classes:

  • Billing API v1 classes wrapping PortaBilling API. Used to create, read, change and remove objects in the billing system.
  • Billing Event v1 class to recieve and handle events from the billing system.
  • Billing Event Dispatcher v1 class to recieve events from the billing system and dispatch it to multiple HTTP(s) endpoints based on route map.

Installation

In the Composer storage. Just add proper require section:

"require": {
    "pavlyuts/portabilling": "0.6"
}

It is a good idea to fix the version you use. Don't use next wersion without review, I can't promose backward compatibility even will try to keep it. Please, review the changelog before to change used version.

Dependencies

  • psr/log: ^1.1
  • rmccue/requests: ^1.7

PortaOne documentation

Please, refer to PortaOne documentation and go to the training before use of this package.