Download the PHP package campaigningbureau/whatsatool-client without Composer

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

Whats A Tool - Client

Description

This library gives you the basic functionality to communicate with the Whats A Tool API.

Whats a Tool MSISDN on Wikipedia

Installation

First require in Composer:

composer require campaigningbureau/whatsatool-client

Add the Service Provider in your config/app.php:

You can also add the Facade there:

Publish the config settings:

Configuration

After publishing the config file you can edit them in config/whatsatool.php.

Make sure you configure at least username and password.

The default_country_code is used to create the correct MSISDN when a phonenumber with local country code is given (e.g. 0664/1234567)

Usage

Validation

To validate a given number:

The Validation cleans the phonenumber, that means removes all non-numeric characters and leading 00 and checks if:

  1. The cleaned phonenumber is not empty
  2. The length is shorter or equal to 15 characters (funny fact: there is no official minimum lengt restriction)
  3. The phonenumber starts with a valid Country Code, which is either 0 for local or a country code that can be found in this list.

Register Contact

To register a new Contact:

This returns the msisdn of the Sim the number is registered to or throws a WhatsAToolException with the error message of the WhatsATool-API.

Development

If you have PHPUnit installed in your environment, run:

If you don't have PHPUnit installed, you can run the following:

Credits

The Msisdn-Logic is based on https://github.com/CoreProc/msisdn-ph-php/.


All versions of whatsatool-client with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
illuminate/support Version ~5
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 campaigningbureau/whatsatool-client contains the following files

Loading the files please wait ....