Download the PHP package by-zer0/sms-assistant-php without Composer

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

StyleCI

sms-assistent.by API PHP wrapper

This library can be used to send messages via sms-assistent.by site.

More info about API can be found here.

Installation

Add following requirement to your composer.json file:

or just use composer command

Usage

First create client instance.

Constructor accepts ByZer0\SmsAssistantBy\Http\ClientInterface instance. This instance will be actually used to perform HTTP requests. By default, package contains ByZer0\SmsAssistantBy\Http\GuzzleClient class - request wrapper for guzzlehttp/guzzle library. You can write your own implementation of ByZer0\SmsAssistantBy\Http\ClientInterface to use with any other library.

Execute following command if you want to use default guzzle adapter:

Massive sending

Use method sendMessages($messages, $default = [], $time = null) to send multiple messages at once.

in this case $default represents common settings for each message. Default message can contain next fields:

Every message must contain one required field:

In addition to phone, every default value can be overwritten in any message.

You can also use third parameter of sendMessages() to delay send. Third parameter $time accepts DateTime instance.

Single message

Use method sendMessage($phone, $text, $time = null, $sender = null) to send single message.

This method accepts up to four parameters:


All versions of sms-assistant-php with dependencies

PHP Build Version
Package Version
No informations.
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 by-zer0/sms-assistant-php contains the following files

Loading the files please wait ....