filippofinke / sms-apis
A simple wrapper to multiple free sms receive service
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/filippofinke/sms-apis
This package is auto-updated.
Last update: 2025-10-25 11:29:32 UTC
README
Introduction
Simple library that allows the use of free-sms-receive sites through php. This library is modular, so it contains several websites of this type.
Getting started
Clone the repository
git clone https://github.com/filippofinke/sms-apis
Run composer
composer dumpautoload -o
Use the library
<?php
use Api\SmsApi;
require __DIR__ .'/vendor/autoload.php';
$api = new SmsApi(true);
// See the documentation for methods.
?>
See the examples Examples folder
Create a module
Being this library modular you can create a specific module for any website of this kind. To create a module you need to create a class that implements the interface Api\Modules\module. After you have created the module and implemented all the methods of the interface you just have to move it into the modules folder.
Methods you must implement:
public function __construct();
public function getPhones();
public function getSms($phone, $limit);
Example
<?php
namespace Api\Modules;
use Api\SmsApi as SmsApi;
class examplemodule implements module {
private $url = "urlofthewebsite";
private $phones;
public function __construct() {
SmsApi::log("initialized!");
$this->fetchPhones();
SmsApi::log("enabled!");
}
private function fetchPhones() {
//logic to fetch phones
}
public function getPhones() {
return $this->phones;
}
public function getSms($phone, $limit) {
//logic to get sms
}
}
Status
I am currently working on these modules:
- https://receive-smss.com/ Done, api/modules/receivesmsscom.php
- https://sms-receive.net/ Done, api/modules/smsreceivenet.php
- http://sms.sellaite.com/ Done, api/modules/smssellaitecom.php
- https://smstibo.com/ Done, api/modules/smstibocom.php
- http://7sim.net/
- https://sms-online.co/ Done, api/modules/smsonlineco.php
- http://receivesms.cc/
- https://miracletele.com/
- https://receive-sms.cc/