Download the PHP package mrbase/smesg without Composer
On this page you can find all versions of the php package mrbase/smesg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
More information about mrbase/smesg
Files in mrbase/smesg
Short Description Providing wrappers for danish sms gateways
Informations about the package smesg
Smesg - providing wrappers for danish sms gateways.
Smesg is a library to help you send sms messages via different providers.
Currently supported providers:
So far the library only supports sending sms messages, querying for status, canceling and other services will be added.
Install via composer:
or clone this repository:
git clone https://github.com/mrbase/Smesg.git Smesg
First off, you need a contract with one of the provides for you to be able to send anything.
You really sould use a psr-0 compliant autoloader, it will make your day.
A simple one can be found in
Then you need to set the configure variables for the provider (explained in details below) and provide the transport adapter.
Currently only one transport adapter exists, but you can add your own by implementing the
mobile_number must be a valid MSISDN compliant number or the service will fail!
In-depth docs for the providers
The provider for inmobile implements the following services:
- smsclookup (you need a seperate agreement to have access to this service)
smspush: is used to send single messages.
smspushxml: is used when sending batch messages, note that you can only send 1024 messages in one batch, the provider does not handle the split into seperate batches.
smsclookup: is used to loockup serviceproviders for mobile numbers. implementing a cache for this is on the todo list.
Default configuration values:
Please note that the price format uses period (.) as decimal devider.
0.00DKK is the correct value if you do not tax the messages in Denmark.
Possible default values when sending batch messages:
If left alone the price array will be calculated from the value set in the configuration.
If you want to send the same message to a group of people you have the posibility to setup defaults for the messages.
Here is a simple example extending the demo above.