PHPackages                             drakakisgeo/billit - 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. drakakisgeo/billit

ActiveLibrary[API Development](/categories/api)

drakakisgeo/billit
==================

The php client for Billit.io API

2.0.0(4y ago)32.4k↓60%1MITPHPCI failing

Since Jan 24Pushed 4y ago2 watchersCompare

[ Source](https://github.com/drakakisgeo/billit)[ Packagist](https://packagist.org/packages/drakakisgeo/billit)[ RSS](/packages/drakakisgeo-billit/feed)WikiDiscussions master Synced today

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

Billit client
=============

[](#billit-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aab57952d96c0d48c8002b483df6cdfb647e6f1c00bf5543e4ad29288e8ee730/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6472616b616b697367656f2f62696c6c69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/drakakisgeo/billit)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/93443012e2dbb09bb4d5d9b07d768a9d77261d1efef0457f11c173c930d60d34/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6472616b616b697367656f2f62696c6c69742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/drakakisgeo/billit)

This PHP client can be used to connect with the [billit.io API](https://www.billit.io/docs) .

*Note: Billit.io also has an integration with zapier.com, Contact us in order to give you access to our beta zapier app.*

Install
-------

[](#install)

### Via Composer

[](#via-composer)

```
$ composer require drakakisgeo/billit
```

### Laravel Framework

[](#laravel-framework)

If you use the Laravel Framework you need to provide your Billit API key and Base url, so add a key to your config/services.php file as:

```
'billit' => [
        'token' => env('BILLIT_API_TOKEN'),
        'sandbox' => env('BILLIT_API_IS_SANDBOX'),
        'version' => 'v1',
        'timeout' => 2.0
    ]
```

To initialize the client is just a call as this:

```
$client = resolve('billit');
```

You can of course also use the Billit Facade like so

```
Billit::myAccount();
```

Examples
--------

[](#examples)

##### List contacts

[](#list-contacts)

```
use Drakakisgeo\Billit\Billit;

$client = new Billit('yourToken');
$client->contacts();
```

##### Get Account details

[](#get-account-details)

```
$client->myAccount();
```

##### Get Customers

[](#get-customers)

```
$client->contacts();
```

##### Create contact

[](#create-contact)

```
$client->contactCreate([
    'customerType' => 'company',
    'company' => 'Awesome S.A.',
    'inCharge' => 'Kalampakopoulos George',
    'lang' => 'el',
    'VatId'=>'075101010'
]);
```

##### Update contact

[](#update-contact)

```
$client->contactUpdate([
    'customerType' => 'company',
    'company' => 'Awesome S.A.',
    'inCharge' => 'Kalampakopoulos George',
    'lang' => 'el',
    'VatId'=>'075101010'
]);
```

##### Get contact

[](#get-contact)

```
$client->contactShow(1010);
```

##### Delete contact

[](#delete-contact)

```
$client->contactDelete(1010);
```

##### Create invoice

[](#create-invoice)

A full rather complicated example, MyData enabled

```
$client->invoiceCreate([
    "customerId"=>694,
    "sendMail"=> false,
    "excludeMydata"=> true,
    "invoiceDate"=>"2021-04-15",
    "invoiceTypeId"=>349,
    "isPaid" => true,
    "mydataInvoiceType" => "2.1",
    "taxes"=> [
        [
            "taxId"=> 514
        ],
        [
            "taxId"=> 524,
            "taxVatShow"=> 1
        ]
    ],
    "products"=> [
        [
            "productId"=> null,
            "details"=> "test",
            "measurementUnit"=> 1,
            "vatId" => 376,
            "price" => 123.32,
            "quantity"=> 1,
            "incomeClassificationCat"=>"category1_3",
            "incomeClassificationType"=>"E3_561_001"
        ]
    ],
    "tags" => ["billit","test-tag"],
    "mydataPayment"=>[
        "paidAmount"=> 0.32,
        "paymentMethod"=> 3,
        "epiPistosi"=> 10
    ]
]
);
```

Check the rest of the methods to src/Billit.php and the [official API](https://billit.io/docs) regarding the options that can be used in each case.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Credits
-------

[](#credits)

- [Drakakis George](https://github.com/drakakisgeo)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

1526d ago

Major Versions

0.5.0 → 1.0.02021-04-18

v1.0.2 → 2.0.02022-04-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/2325657fff67da73e882b57a74e8ef6eba63d93cc5e5501bfa3a15e8929688f2?d=identicon)[lollypopgr](/maintainers/lollypopgr)

---

Top Contributors

[![drakakisgeo](https://avatars.githubusercontent.com/u/1863506?v=4)](https://github.com/drakakisgeo "drakakisgeo (25 commits)")

---

Tags

billitclientphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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