marchrius / viglink-php-api
An easy-to-use PHP Class for accessing VigLink's API.
Requires
- php: >=5.3.0
- illuminate/support: ^5.0
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- phpunit/phpunit: ~4.6
This package is auto-updated.
Last update: 2025-01-20 03:53:05 UTC
README
A PHP wrapper for the VigLink API. Feedback or bug reports are appreciated.
Composer package available.
Requirements
- PHP 5.3 or higher
- cURL
- Registered account on VigLink
Get started
To use the VigLink API you have to register yourself as a developer at the VigLink Developer Platform. At User's campaigns informations you will receive your api_key
and secret_key
.
A good place to get started is the example project.
Installation
I strongly advice using Composer to keep updates as smooth as possible.
$ composer require marchrius/viglink-php-api
Initialize the class
use Marchrius\VigLink\VigLink;
$viglink = new VigLink(array(
'api_key' => 'YOUR_APP_KEY',
'secret_key' => 'YOUR_APP_SECRET'
));
All methods return the API data json_decode()
- so you can directly access the data as stdClass
.
Examples
Check out the examples
directory for standard PHP examples (no laravel integration)
Changelog
Please see the changelog file for more information.
Credits
Copyright (c) 2017 - Programmed by Matteo Gaggiano
Released under the BSD License.