Skip to content

PHP Client using Free Mobile SMS Notification API to send free messages on your mobile phone. ✉️ 📲

License

Notifications You must be signed in to change notification settings

Th3Mouk/Free-Mobile-SMS-Notification-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Free Mobile SMS Notifications Client

This library provides a client to send SMS notifications on your mobile phone, through the [Free Mobile](http://mobile .free.fr/) API.

Latest Stable Version Latest Unstable Version Total Downloads License

SensioLabsInsight Build Status Scrutinizer Code Quality Coverage Status

Installation

Composer

composer require th3mouk/free-mobile-sms-cli ^1.0

Free Mobile

Go to your customer area.

Click on: Gérer mon compte > Mes Options > Notifications par SMS > Activer l'option

You got now your authentication key.

Usage

Client

use Th3Mouk\FreeMobileSMSNotif\Client;

$login = 'test';
$pass = 'test';

$freeMobileClient = new Client($login, $pass);
$response = $freeMobileClient->send('Test Message');

Response Codes

$response = $freeMobileClient->sendMessage('Test Message');
$code = $response->getStatusCode();
  • 200: SMS Sent
  • 400: Missing parameter
  • 402: Too much SMS send in too little time
  • 403: Service isn't active on your customer area, or login/pass incorrect
  • 500: Error on servor side. Please retry later.

Please

Feel free to improve this library.

About

PHP Client using Free Mobile SMS Notification API to send free messages on your mobile phone. ✉️ 📲

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages