makallio85/php-sms

This package is abandoned and no longer maintained. The author suggests using the https://github.com/Nexmo/nexmo-php package instead.

PHP library to send SMS messages via different gateways

1.0.0 2016-01-04 17:50 UTC

This package is auto-updated.

Last update: 2019-05-14 18:25:20 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status

PLEASE NOTE, THAT THIS PROJECT IS NO LONGER MAINTAINED. PLEASE USE OFFICIAL LIBRARY INSTEAD: https://github.com/Nexmo/nexmo-php

PHP SMS class to send sms messages via gateway. Currently supports Nexmo only.

Installation

composer require makallio85/php-sms "dev-master"

Usage

  • Set your credentials to config/Config.php
  • Set debug mode to false, when ready
  • Use code below
$SMS = new \SMS\SMS('nexmo');
$SMS->setSender('Insert sender number or id here.')
    ->setReceiver('Insert receiver number here.')
    ->setMessage('Insert your test message here.')
    ->send();
$response = $SMS->getResponse();

License

The MIT License (MIT)

Copyright (c) 2016 makallio85

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.