2017 © Pedro Peláez
 

library ip1-php-sdk

A PHP client library for the IP1SMS RESTful API

image

ip1sms/ip1-php-sdk

A PHP client library for the IP1SMS RESTful API

  • Wednesday, September 27, 2017
  • by brolaugh
  • Repository
  • 3 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 24 Versions
  • 0 % Grown

The README.md

IP1 RESTClient

Build Status Code Climate SensioLabsInsight, (*1)

A PHP SDK for IP1's SMS services., (*2)

Note: This package is in a beta stage and it's not recommended for use in production, (*3)

Getting Started

Installing

Install using Composer., (*4)

{
  "require": {
    "ip1sms/ip1-php-sdk": "*"
  }
}

Getting API Credentials

Visit the IP1 SMS Shop and add an SMS balance or service of your choice and then proceed to checkout. Create an account at the under Customer information. When done click Pay by Card and pay for chosen balance or service. An email has by this point been sent to you with login and API credentials. The ones you're interested in for using the API are Account ID and API Key., (*5)

Free Method

Create a free test-account at: app.ip1sms.com, (*6)

Then log in at this link using the credentials sent to the phone number provided via SMS. Once logged in click on Settings and then SMS Gateway API and you will be presented in the left panel with an account ID. The API Key will be sent to the phone number provided on registration when the Send API Key is clicked., (*7)

Note: You can verify your account and get €1 of credit if you verify your account by pressing Verify yourself for test credits In the middle left., (*8)

Basic Usage

Sending a text message.
<?php
use IP1\RESTClient\SMS\OutGoingSMS;
use IP1\RESTClient\Core\Communicator;

$com = new Communicator("{account-id}", "{apiKey}");
$sms = new OutGoingSMS("{nameOrNumber}", "IP1 SMS is the best!");
$sms->addNumber("{aPhoneNumber}");
$com->add($sms);
Adding a contact and then editing it.
<?php
use IP1\RESTClient\Recipient\Contact;
use IP1\RESTClient\Recipient\ProcessedContact;
use IP1\RESTClient\Core\Communicator;

$com = new Communicator("{accountID}", "{apiKey}");
$contact = new Contact("Jack", "{aPhoneNumber}");
$contact = $com->add($contact);

$contact->setEmail("jack@example.org");
$com->edit($contact);

Authors

  • Hannes Kindströmmer - Initial work

License

This project is licensed under the GNU LGPLv3 License - see LICENSE file for details., (*9)

Contributing

Please file issues under Github, or submit a pull request if you'd like to directly contribute. Note that this project uses an extended version of PSR2 which adds some commenting rules from Squiz in order for PHPDoc to work correctly., (*10)

Running tests

Tests are run with phpunit. Run ./vendor/bin/phpunit to run tests., (*11)

The Versions

27/09 2017

dev-master

9999999-dev

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

27/09 2017

dev-develop

dev-develop

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

27/09 2017

0.3.3-beta

0.3.3.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

29/06 2017

0.3.2-beta

0.3.2.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

19/04 2017

0.3.1-beta

0.3.1.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

21/03 2017

0.3.0-beta

0.3.0.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

 

The Development Requires

20/03 2017

0.2.0-beta

0.2.0.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

16/03 2017

0.1.12-beta

0.1.12.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

16/03 2017

0.1.11-beta

0.1.11.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.10-beta

0.1.10.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.9-beta

0.1.9.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.8-beta

0.1.8.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.7-beta

0.1.7.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.6-beta

0.1.6.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.5-beta

0.1.5.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.4-beta

0.1.4.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.3-beta

0.1.3.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.2-beta3

0.1.2.0-beta3

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.2-beta2

0.1.2.0-beta2

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.2-beta

0.1.2.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.1-beta3

0.1.1.0-beta3

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.1-beta2

0.1.1.0-beta2

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

15/03 2017

0.1.1-beta

0.1.1.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires

14/03 2017

0.1.0-beta

0.1.0.0-beta

A PHP client library for the IP1SMS RESTful API

  Sources   Download

LGPL-3.0

The Requires

  • php ^7.1.1

 

The Development Requires