PHP Classes

PHP SMS Sending API: Send simple SMS messages with the Afilnet API

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 268 This week: 1All time: 7,732 This week: 560Up
Version License PHP version Categories
send-simple-sms 1.0Freeware5PHP 5, Wireless and Mobile, Web services
Description 

Author

This class can send simple SMS messages with the Afilnet API.

It can send a HTTP request to the Afilnet API Web server to send a SMS message to a given number using the user name and password of an user of the Afilnet site.

The class parses the response of the HTTP request and stores a message in a variable depending on whether the message was sent successfully, the user name or password are incorrect, or the user does not have enough credits to send the SMS message.

Picture of Afilnet
Name: Afilnet <contact>
Classes: 1 package by
Country: Spain Spain
Age: ???
All time rank: 3915104 in Spain Spain
Week rank: 416 Up14 in Spain Spain Up

Example

<?php
   
include("send-simple-sms.php");
   
   
$email = "EMAIL"; // Afilnet account's email
   
$password = "PASSWORD"; // Afilnet account's password
   
$mobile = "MOBILE"; // mobile target
   
$sender = "SENDER"; // sender 11 characters maximum
   
$prefix = "PREFIX"; // country prefix
   
$sms = "This is a simple sms send test through our API (Afilnet)"; // sms 160 characters maximum
   
   
$send = new SendSimpleSMS($email, $password, $mobile, $sender, $prefix, $sms);
   
   
$send->send();
   
    echo
$send->getReturnMessage();

?>


Details

# send-simple-sms Sending simple SMS through Afilnet. Steps: 1. Register in http://www.afilnet.com/anunciante/registrar.php 2. Login and get credits (10 free) to send sms 3. Import files you need to send simple sms in your project

  sending sms html formExternal page  
  Files folder image Files  
File Role Description
Accessible without login Plain text file send.php Example Script to process the data collected form named form.html
Accessible without login HTML file form.html Data html form to send sms
Accessible without login Plain text file test.php Example script to check class use
Accessible without login HTML file documentation.html Doc. Class documentation
Plain text file send-simple-sms.php Class SensSimpleSMS Class
Accessible without login Plain text file readme.txt Doc. readme file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:268
This week:1
All time:7,732
This week:560Up