PHPackages                             invoiced/invoiced - 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. invoiced/invoiced

ActiveLibrary[API Development](/categories/api)

invoiced/invoiced
=================

Invoiced PHP Library

2.4.3(4mo ago)14120.5k↓34.1%8[1 issues](https://github.com/invoiced/invoiced-php/issues)MITPHPPHP &gt;=8.0CI failing

Since Aug 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/invoiced/invoiced-php)[ Packagist](https://packagist.org/packages/invoiced/invoiced)[ Docs](https://invoiced.com/)[ RSS](/packages/invoiced-invoiced/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (5)Versions (32)Used By (0)

invoiced-php
============

[](#invoiced-php)

This repository contains the PHP client library for the [Invoiced](https://invoiced.com) API.

[![CI](https://github.com/Invoiced/invoiced-php/actions/workflows/ci.yml/badge.svg)](https://github.com/Invoiced/invoiced-php/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/e77383e89e8c840beadc39f8746019160c9bd90cbdd462a0585d7ff2f3a517c5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f496e766f696365642f696e766f696365642d7068702f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/Invoiced/invoiced-php?branch=master)[![PHP version](https://camo.githubusercontent.com/627264491dc06d93a3351992890526dd60f3eb442175d56f80f414e7d772619d/68747470733a2f2f62616467652e667572792e696f2f70682f696e766f69636564253246696e766f696365642e737667)](https://badge.fury.io/ph/invoiced%2Finvoiced)

Installing
----------

[](#installing)

The Invoiced package can be installed with composer:

```
composer require invoiced/invoiced

```

Requirements
------------

[](#requirements)

- PHP 5.5+, PHP 7+, or PHP 8+
- [Composer](https://getcomposer.org/)

Usage
-----

[](#usage)

First, you must instantiate a new client

```
$invoiced = new Invoiced\Client('{API_KEY}');
```

Then, API calls can be made like this:

```
// retrieve invoice
$invoice = $invoiced->Invoice->retrieve('{INVOICE_ID}');

// mark as paid
$payment = $invoiced->Payment->create([
    'amount' => $invoice->balance,
    'method' => 'check',
    'applied_to' => [
        [
            'type' => 'invoice',
            'invoice' => $invoice->id,
            'amount' => $invoice->balance,
        ],
    ]
]);
```

If you want to use the sandbox API instead then you must set the second argument on the client to `true` like this:

```
$invoiced = new Invoiced\Client("{SANDBOX_API_KEY}", true);
```

Developing
----------

[](#developing)

The test suite can be ran with `phpunit`

Deploying
---------

[](#deploying)

In order to deploy a new version to Packagist, a new release must be created in GitHub.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 76.5% 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 ~137 days

Recently: every ~366 days

Total

29

Last Release

129d ago

Major Versions

0.14 → 1.0.02019-11-11

1.3.0 → 2.0.02020-12-09

PHP version history (2 changes)0.0.1PHP &gt;=5.4

2.4.3PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d31f148b30ea3f288fb9e748f6a1dbd7c145a4bd0af74b4687812227221608a?d=identicon)[Jaredtking](/maintainers/Jaredtking)

---

Top Contributors

[![jared-invoiced](https://avatars.githubusercontent.com/u/180346820?v=4)](https://github.com/jared-invoiced "jared-invoiced (26 commits)")[![andriy-invoiced](https://avatars.githubusercontent.com/u/54038605?v=4)](https://github.com/andriy-invoiced "andriy-invoiced (5 commits)")[![adam-invoiced](https://avatars.githubusercontent.com/u/56404647?v=4)](https://github.com/adam-invoiced "adam-invoiced (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

apibillingcomposerinvoicedphpapisdkbillingpaymentsinvoicingsubscription billingrecurring billingcredit notesinvoicedmetered billingestimatesusage billingpayment plans

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/invoiced-invoiced/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.7M18](/packages/xeroapi-xero-php-oauth2)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1143.1M19](/packages/plivo-plivo-php)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1112.0M6](/packages/plivo-php-sdk)

PHPackages © 2026

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