PHPackages                             lsolesen/billy-php-sdk - 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. lsolesen/billy-php-sdk

ActiveLibrary[API Development](/categories/api)

lsolesen/billy-php-sdk
======================

PHP-SDK to communicate with Billy (http://www.billy.dk)

2.1.0(10y ago)37.0k2[1 PRs](https://github.com/lsolesen/billy-php-sdk/pulls)MITPHPPHP &gt;=5.3.2

Since Mar 21Pushed 6y ago3 watchersCompare

[ Source](https://github.com/lsolesen/billy-php-sdk)[ Packagist](https://packagist.org/packages/lsolesen/billy-php-sdk)[ Docs](http://github.com/lsolesen/billy-php-sdk)[ RSS](/packages/lsolesen-billy-php-sdk/feed)WikiDiscussions master Synced 1mo ago

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

Billy PHP SDK
=============

[](#billy-php-sdk)

[![Build Status](https://camo.githubusercontent.com/4c7818e523a62b694e208ee2178194a72ae07ca0a3dcfd6ba107986bb2265c5f/68747470733a2f2f7472617669732d63692e6f72672f6c736f6c6573656e2f62696c6c792d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lsolesen/billy-php-sdk) [![Code Coverage](https://camo.githubusercontent.com/6f3e4ea991baf5a052ed398a77dddd56e033ce7c1380a1effc98109cb7894d95/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c736f6c6573656e2f62696c6c792d7068702d73646b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lsolesen/billy-php-sdk/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/5310500313987acab3d40a267e551e2d954c92350dfd1ff1156de86d4b113a93/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c736f6c6573656e2f62696c6c792d7068702d73646b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lsolesen/billy-php-sdk/?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/436efb7df971ef3de774c45541c380c64eefb3bbd09f80e585ca8714fa98c216/68747470733a2f2f706f7365722e707567782e6f72672f6c736f6c6573656e2f62696c6c792d7068702d73646b2f762f737461626c65)](https://packagist.org/packages/lsolesen/billy-php-sdk) [![Total Downloads](https://camo.githubusercontent.com/02911c23a173613b75a301b64d19abca8eb718a6e6a11a7b7b5ffa44acffe964/68747470733a2f2f706f7365722e707567782e6f72672f6c736f6c6573656e2f62696c6c792d7068702d73646b2f646f776e6c6f616473)](https://packagist.org/packages/lsolesen/billy-php-sdk) [![License](https://camo.githubusercontent.com/0997ab3a591c0d219da546e052bbff5cb50aaaa47e4e70489a94ccec5ca6bae2/68747470733a2f2f706f7365722e707567782e6f72672f6c736f6c6573656e2f62696c6c792d7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/lsolesen/billy-php-sdk)

PHP SDK for [Billy API](https://billy.dk/api) version 2 only from the Danish accounting program [Billy](http://www.billy.dk/).

Getting started
---------------

[](#getting-started)

Before doing anything you should register yourself with Billy and get access credentials.

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

[](#installation)

### Composer

[](#composer)

Simply add a dependency on lsolesen/billy-php-sdk to your project's `composer.json` file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a dependency on Billy PHP SDK 2.1:

```
{
    "require": {
        "lsolesen/billy-php-sdk": "2.1.*"
    }
}

```

After running `composer install`, you can take advantage of Composer's autoloader in `vendor/autoload.php`.

Usage
-----

[](#usage)

### Create a new client

[](#create-a-new-client)

First you should create a client instance that is authorized with `api_key` or provided by Billy.

```

```

### Create and update contact

[](#create-and-update-contact)

```
