Download the PHP package mane-olawale/termii without Composer

On this page you can find all versions of the php package mane-olawale/termii. 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 termii

Github Total Downloads Latest Stable Version License

Termii Client

A simple Object Oriented PHP Client for Termii SMS API.

Uses Termii API.

Requirements

Installation

Via Composer.

PHP 7.2+:

You now have Termii Client installed in vendor/mane-olawale/termii

And an handy autoload file to include in your project in vendor/autoload.php

Basic usage of Termii client

Enhanced http response

Error handling

You can still treat the response as array

You can use foreach directly on list responses e.g history, sender list etc.

Note There are more helper methods to the response. Check out the full documentation here.

Sender

Getting Sender ID list

Uses Sender ID.

Note We didn`t add the Sender id and channel becuase they are optional and they can always be passed later on the client object or the SMS API handler.

Request Sender ID

Uses Request Sender ID.

SMS

Send Message

Uses Switch - Messaging.

Custom Sender ID or Channel

You can fetch the message resource right after.

Send Number

Uses Switch - Number.

Template

Uses Switch - Template.

Token

Send Token

Uses Send Token.

Custom Sender ID or Channel

Verify Token

Uses Verify Token.

For men and women of few words

Note The above example will make you send multiple requests. Use the below helpers instead.

Custom error handlers

Send In App Token

Uses Send In App Token.

Account insights

Balance

Uses Balance.

Inbox

Uses Inbox.

Search

Uses Search.

The search Api is used majorly for checking if a number is DND active, so there are two helper functions to ease the check

Note The above example will make you send multiple requests. Use the below helpers instead.

Status

Uses Status.

Http Manager

In some situations where you want to be responsible for handling the http requests that termii Client sends out, write your own http manager. if you do not use any http manager the client will use the bult-in guzzle manager.

You can set the Http Manager directly by passing it as the third argument of the client contructor

Set http manager using the setter method:


All versions of termii with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
guzzlehttp/guzzle Version ~6|~7
mane-olawale/rest-response Version ^0.1.0
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 mane-olawale/termii contains the following files

Loading the files please wait ....