Download the PHP package evp/gsms-php-client without Composer

On this page you can find all versions of the php package evp/gsms-php-client. 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 gsms-php-client

GsmsPhpClient

What is GsmsPhpClient?

GsmsPhpClient is a helper-library, that will allow you to easily integrate sending SMS messages functionality into your website if you are in possession of an active Gsms.lt account with a positive balance.

In short: this is a wrapper for the existing Gsms.lt API - Download DOC format specification

Sections

Requirements

Installation

This will ensure that all of the library's classes are properly loaded. Make sure you change the 'path/to' to the actual path of the GsmsPHPClient.

Congratulations, you have successfully installed GsmsPHPClient!

Code samples

Once you have installed the library, you are now ready to create a Gsms_Client

Where "username" and "password" are your gsms.lt account login and password accordingly.

Now use the client to send your first SMS message:

You are only allowed to send SMS from the numbers that have been added to your account via gsms.lt web interface, which means that you are not to specify a random telephone number as the first parameter of the send method.

Now check if the SMS you sent has completed without a hitch with the $response object that Gsms_Client::send method returns.

The $lastResponse string will provide feedback from the API and will help you debug any issues you might encounter.

Additional notes

Gsms_Client::send method will throw an exception if the response from the API is invalid. It is always a good idea to wrap a try-catch clause around your code in to anticipate such behaviour

Contacts

If you have any further questions feel free to contact us:

"EVP International", UAB
Mėnulio g. 7
LT-04326 Vilnius
Email: [email protected]
Tel. +370 (5) 2 03 27 19
Faksas +370 (5) 2 63 91 79


All versions of gsms-php-client 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 evp/gsms-php-client contains the following files

Loading the files please wait ....