coderatio / smartsms
A php library for smartsms solutions
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 2
Open Issues: 0
pkg:composer/coderatio/smartsms
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2025-09-19 15:01:14 UTC
README
A flexible PHP library for smartsms solutions
Installation
composer require coderatio/smartsms
Usage
require('vendor/autoload.php'); use Coderatio\Smartsms\Smartsms; $config['token'] = env('SMARTSMS_TOKEN'); // Or $config['token'] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; $sms = Smartsms::init($config) ->to('XXX-XX-XXXX-XXXX') ->from('Coderatio') ->message('I have installed the library.') ->send();
Response
The library returns json and object response type.
$sms->asObject(); //Returns response as object $sms->response(); //Returns as json.
Todo
- Send sms from files (txt, pdf, docs, .xls)
- Test (Phpunit)