PHPackages                             mrbase/smesg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. mrbase/smesg

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mrbase/smesg
============

Providing wrappers for danish sms gateways

v1.0(14y ago)33.3kPHPPHP &gt;=5.3.2

Since Mar 12Pushed 14y ago1 watchersCompare

[ Source](https://github.com/mrbase/Smesg)[ Packagist](https://packagist.org/packages/mrbase/smesg)[ Docs](https://github.com/mrbase/Smesg)[ RSS](/packages/mrbase-smesg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Smesg - providing wrappers for danish sms gateways.
===================================================

[](#smesg---providing-wrappers-for-danish-sms-gateways)

**Smesg** is a library to help you send [sms](http://en.wikipedia.org/wiki/SMS) messages via different providers.

Currently supported providers:

- [unwire](http://unwire.dk)
- [inmobile](http://www.inmobile.dk/)

So far the library only supports sending sms messages, querying for status, canceling and other services will be added.

Installation
------------

[](#installation)

Install via [composer](http://packagist.org/packages/mrbase/smesg):

```
{
    "require": {
        "mrbase/smesg": "*"
    }
}
```

or clone this repository:

`git clone https://github.com/mrbase/Smesg.git Smesg`

Usage
-----

[](#usage)

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](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compliant autoloader, it will make your day.

A simple one can be found in `tests/autoloader.php`.

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 `Smesg\Adapter\AdapterInterface`.

Unwire example:

```
