Download the PHP package alyatek/smspubli-api without Composer

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

⚠ DISCLAIMER : This is not even close to ready for production. This is my first public package so I have a lot to learn first.

logo

phpv codacy codeclimate scrutinizer packagyst

Even though their api documentation is super simple and easy to understand I wanted an even simpler way of using it. The package is currently very simple and only does one thing, sends a sms, even though it validates the numbers and certain contents, I want to improve it in the future.

Installation

Use composer to install the package.

Make sure you also have an account at SMSPUBLI and get your key.

Usage

Pay attention to the following before using!

Example Code

The request returns an array with a variable status, with the server request status(200 if request was ok).

If it is success - return an array a success_msg, sms_id and if it is an error - it returns an array with success_msg, sms_id.

If Guzzle throws an error, it is returned a message with a status of false.

Testing

For testing copy the and define the variables with the SMS PUBLI api key and the others. Then just run to test.


This is not an official package of smspubli.com, in the time of writing this is not, in anyway, affiliated or partned with smspubli.com . If I'm infringing any violation with the company image please let me know @ [email protected]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate if that is the case.

License

MIT


All versions of smspubli-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
php Version >=7.0.0
ext-json Version *
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 alyatek/smspubli-api contains the following files

Loading the files please wait ....