Download the PHP package usmsgh/usmsgh-api-sdk without Composer

On this page you can find all versions of the php package usmsgh/usmsgh-api-sdk. 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 usmsgh-api-sdk

Urhitech SMS PHP SDK & notifications channel for Laravel

The Urhitech SMS PHP SDK provides a suitable approach to the USMSGH API from applications written in PHP. It includes pre-defined set of classes and functions for API resource that initialize themeselves from API responses.

The library provides other features. For Example:

  1. Easy configuration path for fast setup and use
  2. Helpers for pagination.

Latest Version on Packagist Build Status StyleCI Quality Score Code Coverage Total Downloads

This package also makes it easy to send notifications using USMSGH with Laravel 5.5+, 6.x and ^7.x

You can sign up for a USMSGH account at usmsgh.com

Contents

Prerequisites

PHP 5.6.0 and later

Installation

Via Composer

Via Git Bash

Documentation

Please see https://usmsgh.com/developer/ for up-to-date documentation

Usage

Step 1:

If you install the Urhitech SMS PHP SDK via Git Clone then load the Urhitech SMS PHP API class file and use namespace.

If you install Urhitech SMS PHP SDK via Composer the Require the autoload.php file in the index.php of your project or whatever file you need to use Urhitech SMS PHP API classes.

The Urhitech SMS PHP SDK endpoints are RESTful, and consume and return JSON. All Http endpoints requires an API Key in the request header.

For more information on how to get an API Key visit here to copy or generate new key for authorization.

HTTP ENDPOINTS

For Laravel Usage:

Setting up the Usmsgh .env

Add the following code to you .env:

Setting up the Usmsgh service

Add the following code to you config/services.php:

Usage

Now you can use the channel in your via() method inside the notification:

In order to let your Notification know which phone number to use, add the routeNotificationForUsmsgh method to your Notifiable model.

This method needs to return a phone number.

Local development

When developing an application that sends sms, you probably don't want to actually send sms to live phone numbers. You may set a universal recipient of all sms sent. This can be done by the ALL_MY_SMS_UNIVERSAL_TO environment variable or the universal_to option.

Available Message methods

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Step 2:

Instantiate the UrhitechSMSPHPAPI

Send SMS

Check SMS Credit Balance

View Profile

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of usmsgh-api-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0|^8.0
ext-curl Version *
ext-json Version *
illuminate/notifications Version ^8.83
illuminate/support Version ^8.83
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 usmsgh/usmsgh-api-sdk contains the following files

Loading the files please wait ....