2017 © Pedro Peláez
 

library sendingo-php

Sendingo PHP SDK provides methods for API functions.

image

sendingosaas/sendingo-php

Sendingo PHP SDK provides methods for API functions.

  • Friday, May 26, 2017
  • by cyklop
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Sendingo PHP client

This is the Sendingo PHP SDK, which contains methods for easly interacting with the Sendingo API., (*1)

Installation

To install the SDK, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:, (*2)

curl -sS https://getcomposer.org/installer | php

To get started just run the following command (package is under development):, (*3)

php composer.phar require sendingosaas/sendingo-php:dev-master

Later, on production:, (*4)

php composer.phar require sendingosaas/sendingo-php:*

Usage

You should always use Composer's autoloader in your application to automatically load the your dependencies. All examples below assumes you've already included this in your file:, (*5)

require 'vendor/autoload.php';
use Sendingo\Sendingo;

Here's how to send a message using the SDK:, (*6)

# First, instantiate the SDK with your API credentials.
$client_id = 1;
$sendingo = new Sendingo('api-key-example', $client_id);

# Now, compose and send your message.
$sendingo->mails()->send('example@example.com', 'promo-template-slug', [
  'company_name' => 'Sendingo Sp. z o.o.', 
  'message'      => 'We\'ve reached 1000000 customers!', 
  'promo_code'   => 'DISCOUNT', 
], 'pl_PL');

The Versions

26/05 2017

dev-master

9999999-dev https://bitbucket.org/sendingosaas/sendingo-php

Sendingo PHP SDK provides methods for API functions.

  Sources   Download

MIT

The Requires

  • php ^5.5|^7.0

 

The Development Requires