Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.18 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.18 KB

Buffer logo

Build Status

This library allows you to quickly and easily use the Buffer Web API v1 via PHP.

Official Documentation

Getting Started

Prerequisites

  • PHP >=7.2

Installation

Run into the terminal the next command

composer require miguelbemartin/buffer-sdk-php

Usage

// Create a new AuthorizationToken
$auth = new AuthorizationToken('XXX');

// Create a new Buffer Wrapper Client
$buffer = new Buffer($auth);

// Get User
$user = $buffer->userService->getUser();

// Get the profiles
$profiles = $buffer->profileService->getProfiles();

Run the tests

./vendor/bin/phpunit

Contributing

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details