PHPackages                             violuke/betfair - 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. violuke/betfair

ActiveLibrary[API Development](/categories/api)

violuke/betfair
===============

Betfair API PHP 5.4+ library

v1.0.1(10y ago)228MITPHPPHP &gt;=5.4.0

Since Oct 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/violuke/betfair-php)[ Packagist](https://packagist.org/packages/violuke/betfair)[ RSS](/packages/violuke-betfair/feed)WikiDiscussions master Synced 4w ago

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

betfair-php
===========

[](#betfair-php)

**Note: This is a fork of the great work in the danieledangeli/betfair-php project. I've forked this as I needed changes to be made to the package (it was broken before) and they were not merged into the original project very quickly (or at all). If my changes get merged into that project promptly in future then I might stop maintaing this fork.**

---

**Protip:** There was big chnages in the last days, please use the version 0.1.1 instead of dev-master for back compatibility. Have a look on: [`erlangb/betfair`](https://packagist.org/packages/erlangb/betfair)page to choose a stable version to use, instead of dev-master

This PHP 5.4+ library helps you to interact with the Betfair API via PHP.

Installation
============

[](#installation)

This library can be found on [Packagist](https://packagist.org/packages). The recommended way to install this is through [composer](http://getcomposer.org).

Run these commands to install composer, the library and its dependencies:

```
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require erlangb/betfair-php:dev-master
```

Or edit `composer.json` and add:

```
{
    "require": {
        "erlangb/betfair": "dev-master"
    }
}
```

**Protip:** you should browse the [`erlangb/betfair`](https://packagist.org/packages/erlangb/betfair)page to choose a stable version to use, instead of dev-master

And install dependencies:

```
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
```

Now you can add the autoloader, and you will have access to the library:

```
