An open API service indexing awesome lists of open source software.

https://github.com/adbutler/adbutler-php

AdButler PHP bindings
https://github.com/adbutler/adbutler-php

ad-server adbutler api php

Last synced: 5 months ago
JSON representation

AdButler PHP bindings

Awesome Lists containing this project

README

          

# AdButler PHP bindings

[![Travis](https://img.shields.io/travis/adbutler/adbutler-php.svg?style=flat-square)](https://travis-ci.org/adbutler/adbutler-php)
[![Packagist Pre Release](https://img.shields.io/packagist/vpre/adbutler/adbutler-php.svg?style=flat-square)](https://packagist.org/packages/adbutler/adbutler-php)
[![Total Downloads](https://img.shields.io/packagist/dt/adbutler/adbutler-php.svg?style=flat-square)](https://packagist.org/packages/adbutler/adbutler-php)
[![License](https://img.shields.io/github/license/adbutler/adbutler-php.svg?style=flat-square)](https://github.com/adbutler/adbutler-php/blob/master/LICENSE)

You can sign up for an AdButler account at [https://adbutler.com](https://adbutler.com).

If you are looking for documentation, go here: [https://adbutler.com/docs/api?php](https://adbutler.com/docs/api?php)

## Requirements
1. [AdButler account](https://adbutler.com/)
2. PHP 5.6 or later

## Installation

### Composer

You can install the bindings via [Composer](http://getcomposer.org/).
Run the following command:

```bash
composer require adbutler/adbutler-php
```

If you are installing a beta version, then you need to mention the version tag
too e.g. `composer require adbutler/adbutler-php 1.0.4-beta`.

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```php
require_once('vendor/autoload.php');
```

### Manual Installation

If you do not wish to use Composer, you can download the
[latest release](https://github.com/adbutler/adbutler-php/releases).
Then, to use the bindings, include the `init.php` file.

```php
require_once('/path/to/adbutler-php/init.php');
```

## Getting Started

Simple usage looks like:

```php
\AdButler\API::init(array('api_key' => '45e8fca2dc0f896fd7cb4cb0031ba249'));

$advertiser = \AdButler\Advertiser::create(array(
"can_change_password" => true,
"can_add_banners" => true,
"email" => "demo.advertiser@adbutler.com",
"name" => "Demo Advertiser",
"password" => "some_password"
));

echo $advertiser;
```

## Documentation

Please see https://adbutler.com/docs/api for up-to-date documentation.

## License
© 2016–2019 SparkLIT. Released under the MIT license.