quiubas/quiubas-php

Quiubas PHP Library for REST API

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.0.4 2016-04-23 02:21 UTC

This package is not auto-updated.

Last update: 2023-07-26 13:22:27 UTC


README

Requirements

  • PHP 5.3+
  • openssl extension
  • curl extension

Current version 1.3.2

Installation

Install quiubas-php by downloading the source.

Download the latest release. Then, to use the library, include the quiubas.php file.

require_once '/path/to/quiubas-php/Quiubas.php';

Quickstart

Send an SMS

<?php
// Install the library by downloading the .zip file to your project folder.
// Load the library
require_once '/path/to/quiubas-php/Quiubas.php';

\Quiubas\Quiubas::setAuth( 'api_key', 'api_private' );

$response = \Quiubas\Sms::send(array(
  'to_number' => '+52552512421',
  'message' => 'Hello there',
));

echo $response['id'];