Download the PHP package mediumart/orange-sms without Composer

On this page you can find all versions of the php package mediumart/orange-sms. 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 orange-sms

orange-sms

Build Status Code Coverage Scrutinizer Code Quality

Description

A php library to interact with the orange sms api for MiddleEast and Africa.

Installation

Using composer:

Usage

First you need to resolve a SMSClient instance:

next step, create an SMS object passing it the $client :

and you're good to go:

You now have access to the full orange sms api through the $sms object :

All json responses will automatically be converted to array.

Be sure to lookup the official documentation, to see what to expect as a response to each call.

Access Token

When you resolve the SMSClient instance using your client_id and client_secret, a new access token will be fetched from the api server and automatically set on the instance, along with its lifetime in seconds.

We recommend saving the token (maybe to your database) for future use, at least within the limit of its validity period. this will help speed up requests to the api.

Use the getToken() and getTokenExpiresIn() to get those values from the instance:

If you wish, you can also fetch your access token directly without resolving a client instance, using the static authorize method:

this will return as $response, an array of this form:

SSL Certificate check issue

If you experience ssl certificate checking issue, in your local environment. You can disable the check temporarily with the following line, before starting to interact with the api in your code.

Just for testing purposes though. You should never do this on a production server.

License

Mediumart orange-sms is an open-sourced software licensed under the MIT license.


All versions of orange-sms with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.6
guzzlehttp/guzzle Version ~6.0|^7.0.1
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 mediumart/orange-sms contains the following files

Loading the files please wait ....