hugsbrugs/php-sms-freemobile

There is no license information available for the latest version (dev-master) of this package.

PHP SMS Utilities for Free Mobile french operator

dev-master 2017-03-14 19:47 UTC

This package is auto-updated.

Last update: 2024-10-20 01:59:04 UTC


README

This library allows one to play with Free (French Phone Provider) SMS Service. Cool to send yourself code notifications or to send your friends SMS from your computer.

Build Status Coverage Status

Install

Install package with composer

composer require hugsbrugs/php-sms-freemobile

In your PHP code, load library

require_once __DIR__ . '/../vendor/autoload.php';
use Hug\Sms\Sms as Sms;

$sms = new Sms();
$sms->setKey("YOUR_KEY")->setUser("YOUR_USER");
 
try
{
    # Send Message
    $sms->send("Hello World !");
}
catch (Exception $e)
{
	# Catch Possible Errors
    echo "Erreur sur envoi de SMS: (".$e->getCode().") ".$e->getMessage();
}

Unit Tests

composer exec phpunit