PHP Classes

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

Recommend this page to a friend!
  Info   Example   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 268 All time: 7,736 This week: 524Up
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: 3921104 in Spain Spain
Week rank: 216 Up8 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 (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:268
This week:0
All time:7,736
This week:524Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2241