miguelbemartin/buffer-sdk-php

This library allows you to use the Buffer API using PHP

v1.0.5 2022-06-28 09:43 UTC

This package is auto-updated.

Last update: 2024-04-28 13:45:15 UTC


README

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