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
- Host: GitHub
- URL: https://github.com/adbutler/adbutler-php
- Owner: adbutler
- License: mit
- Created: 2016-12-01T20:46:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T17:47:50.000Z (over 5 years ago)
- Last Synced: 2025-11-12T05:22:33.531Z (7 months ago)
- Topics: ad-server, adbutler, api, php
- Language: PHP
- Homepage: http://www.adbutler.com/docs/api?php
- Size: 79.1 KB
- Stars: 3
- Watchers: 6
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AdButler PHP bindings
[](https://travis-ci.org/adbutler/adbutler-php)
[](https://packagist.org/packages/adbutler/adbutler-php)
[](https://packagist.org/packages/adbutler/adbutler-php)
[](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.