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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

Installation

Install via composer:

or clone this repository:

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

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 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:

Note, the mobile_number must be a valid MSISDN compliant number or the service will fail!

In-depth docs for the providers

inmobile:

The provider for inmobile implements the following services:

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.

Example: 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.

Build Status


All versions of smesg with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mrbase/smesg contains the following files

Loading the files please wait ....