PHPackages                             olsgreen/sage-business-cloud-accounting-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. olsgreen/sage-business-cloud-accounting-api

ActiveLibrary[API Development](/categories/api)

olsgreen/sage-business-cloud-accounting-api
===========================================

This package provides a means easily of interacting with the Sage Business Cloud Accounting API.

2.0(4y ago)06.5k1MITPHP

Since Aug 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/olsgreen/sage-business-cloud-accounting-api)[ Packagist](https://packagist.org/packages/olsgreen/sage-business-cloud-accounting-api)[ RSS](/packages/olsgreen-sage-business-cloud-accounting-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Sage Business Cloud Accounting PHP API Client
=============================================

[](#sage-business-cloud-accounting-php-api-client)

[![Latest Version](https://camo.githubusercontent.com/be19c3b28668ffb7a927c023f75b6f11791f796505217d64ba1d767507a15c27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f6c73677265656e2f736167652d627573696e6573732d636c6f75642d6163636f756e74696e672d6170692e7376673f7374796c653d666c61742d737175617265)](https://github.com/olsgreen/sage-business-cloud-accounting-api/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package provides a means easily of interacting with the Sage Business Cloud Accounting API.

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

[](#installation)

Add the client to your project using composer.

```
composer require olsgreen/sage-business-cloud-accounting-api

```

Usage
-----

[](#usage)

Sage require that you exchange your key &amp; secret for an access token, this is then used to access the API.

You can handle authentication and obtain an access token by using my other package that [olsgreen/oauth2-sage-business-cloud](https://github.com/olsgreen/oauth2-sage-business-cloud) for the [PHP Leagues oAuth2 Client package](https://oauth2-client.thephpleague.com).

Examples
--------

[](#examples)

### Creating a basic Contact

[](#creating-a-basic-contact)

```
    $sage = new \Olsgreen\SageBusinessCloud\Accounting\Client([
        'access_token' => 'your_acess_token'
    ]);

    $contact = $sage->contacts()->create('Peter Jones', ['CUSTOMER']);

    // [
    //     "id" => "4d63c58e4a8943ff81a5b1809b98e58a",
    //     "displayed_as" => "Peter Jones",
    //     "$path" => "/contacts/4d63c58e4a8943ff81a5b1809b98e58a",
    //     "created_at" => "2021-08-10T15:57:42Z",
    //     "updated_at" => "2021-08-10T15:57:42Z",
    //     ...
    // ]
```

Endpoint Support
----------------

[](#endpoint-support)

Sage Business Cloud Accounting has numerous endpoints, we have only implemented a limited number so far:

✅ Contacts

✅ Contact Payments

✅ Contact Allocations

✅ Contact Types

✅ Countries

✅ Sales Invoices

✅ Purchase Invoices

✅ Transaction Types

✅ Tax Rates

✅ Journals

➖ Ledger Accounts

➖ Bank Accounts

➖ User

See the [API Reference](https://developer.sage.com/accounting/reference/) for a full list.

License
=======

[](#license)

See attached license file

Contributions
=============

[](#contributions)

Pull requests welcome 🙂

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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 ~3 days

Total

3

Last Release

1728d ago

Major Versions

1.1 → 2.02021-08-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7480518d69b3d7e1f985e9f8b7f5aaf43f4cdeac87bda4eeb832c75f21f0d27?d=identicon)[olsgreen](/maintainers/olsgreen)

---

Top Contributors

[![olsgreen](https://avatars.githubusercontent.com/u/1324164?v=4)](https://github.com/olsgreen "olsgreen (18 commits)")

---

Tags

phpsage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/olsgreen-sage-business-cloud-accounting-api/health.svg)

```
[![Health](https://phpackages.com/badges/olsgreen-sage-business-cloud-accounting-api/health.svg)](https://phpackages.com/packages/olsgreen-sage-business-cloud-accounting-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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