marchrius/viglink-php-api

An easy-to-use PHP Class for accessing VigLink's API.

0.0.3 2018-02-19 09:37 UTC

This package is auto-updated.

Last update: 2024-04-20 02:17:24 UTC


README

A PHP wrapper for the VigLink API. Feedback or bug reports are appreciated.

Total Downloads Latest Stable Version License

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.