PHPackages                             pavlyuts/porta-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pavlyuts/porta-api

Abandoned → [porta/billing](/?search=porta%2Fbilling)Library[API Development](/categories/api)

pavlyuts/porta-api
==================

PortaOne billing API wrapper

0.2.6(2y ago)052MITPHPPHP ^7.2

Since Feb 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pavlyuts/porta-api)[ Packagist](https://packagist.org/packages/pavlyuts/porta-api)[ Docs](https://github.com/pavlyuts/porta-api)[ RSS](/packages/pavlyuts-porta-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

PortaOne Billing API and ESPF wrapper for PHP
=============================================

[](#portaone-billing-api-and-espf-wrapper-for-php)

Purpose
-------

[](#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.

Classes:

- **[Billing](https://github.com/pavlyuts/porta-api/wiki/Billing)** class wrapping PortaBilling API. Used to create, read, change and remove objects in the billing system.
- **[ESPF](https://github.com/pavlyuts/porta-api/wiki/ESPF)** class wrapping ESPF API

Please, refer [project Wiki](https://github.com/pavlyuts/porta-api/wiki) for details and usage example.

Installation
------------

[](#installation)

In the Composer storage. Just add proper require section:

```
"require": {
    "pavlyuts/porta-api": "^0.1"
}

```

It is a good idea to fix the version you use. Don't use next version without review, I can't promose backward compatibility even will try to keep it. Please, review the [changelog](https://github.com/pavlyuts/porta-api/blob/master/CHANGELOG.MD) before to change used version.

Dependencies
------------

[](#dependencies)

- php: ^7.2
- guzzlehttp/guzzle: ^7.0

PortaOne documentation
----------------------

[](#portaone-documentation)

Your API documentatnin is always available on your PortaBilling SIP server, same host as billing admin interface, at `/doc/api/` path.

Please, also refer to [PortaOne documentation](https://docs.portaone.com/). Mind your release!

Testing
-------

[](#testing)

Tested with PHPUnit 8.5 on php 7.2 and 7.4, up to 100% coverage, which does not mean everything will work as intended.

To test, install in dev mode and use:

- `composer test` command from library root for run all standard modular tests
- `composer livetest` to run a test against live PortaBilling server.

For live testing run `livetest` once and it will create config file templeate. Then edit the file to provide host, username and password or token and run `livetest` again. Do not forget to remove the config file after tests!

Manualy tested and used with PortaBilling release MR100.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Total

7

Last Release

1076d ago

PHP version history (2 changes)0.1PHP ^7.2

0.3.x-devPHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/51fb7e1bfe1a741b842ccaffe58a95229f1afa531676dff7d14e61cda27a9ae7?d=identicon)[pavlyuts](/maintainers/pavlyuts)

---

Top Contributors

[![pavlyuts](https://avatars.githubusercontent.com/u/6569739?v=4)](https://github.com/pavlyuts "pavlyuts (44 commits)")

---

Tags

apibillingespfportaoneportastartapibillingportaoneportastart

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pavlyuts-porta-api/health.svg)

```
[![Health](https://phpackages.com/badges/pavlyuts-porta-api/health.svg)](https://phpackages.com/packages/pavlyuts-porta-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[invoiced/invoiced

Invoiced PHP Library

14117.1k](/packages/invoiced-invoiced)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
