Download the PHP package andreasnij/an-sms without Composer
On this page you can find all versions of the php package andreasnij/an-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andreasnij/an-sms
More information about andreasnij/an-sms
Files in andreasnij/an-sms
Package an-sms
Short Description A PHP library to send and receive SMS text messages through various gateways/providers.
License MIT
Homepage http://github.com/andreasnij/an-sms
Informations about the package an-sms
AnSms - A PHP SMS library
An extendable library for sending and receiving SMS messages.
Supported SMS gateways
Send SMS | Delivery reports | Receive SMS | Premium SMS | |
---|---|---|---|---|
46elks | ✔ | ✔ | ✔ | |
Cellsynt | ✔ | ✔ | ✔ | ✔ |
Vonage (formerly Nexmo) | ✔ | ✔ | ✔ | |
Twilio | ✔ | ✔ | ✔ | |
Telenor SMS Pro | ✔ | ✔ |
You can add and use your own gateway. This library enables easy switching between different gateways.
Installation
Add the package as a requirement to your composer.json
:
If you want to use the 46elks, Cellsynt or Telenor SMS Pro gateway you also you need implementations of PSR-7: HTTP message interfaces, PSR-17: HTTP Factories and PSR-18: HTTP Client. A popular package for this is Guzzle. You can install it with:
You may choose to use any other implementations of the PSR interfaces though.
If you want to use the Twilio gateway you also need to install the Twilio SDK:
If you want to use the Vonage gateway you also need to install the Vonage client:
Usage
Upgrading
Please see UPGRADING for details.
Author
Andreas Nilsson (https://github.com/andreasnij)
License
This software is licensed under the MIT license - see the LICENSE file for details.
All versions of an-sms with dependencies
psr/log Version ^1.0 || ^2.0 || ^3.0
psr/http-message Version ^1.1 || ^2.0
psr/http-factory Version ^1.0
psr/http-client Version ^1.0
php-http/discovery Version ^1.14