Download the PHP package cmantito/whmcs-php without Composer

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

whmcs-php

This is a simple class which allows you to interact with the WHMCS API using PHP.

Installation

This is now available via composer, and can be included by creating a file called composer.json in the root with the contents:

{
    "name": "you/yourappname",
    "description": "Your app description",
    "version": "1.0",
    "homepage": "http://www.yoursite.tld",
    "require": {
       "cmantito/whmcs-php": "dev-master"
    }
}

Then you can run php /path/to/composer.phar install to install it, assuming you've installed composer. See https://getcomposer.org/ for info. Alternatively, clone the repository and use require_once 'whmcs.class.php'; if you do not use composer.

Setup

$whmcs = new WHMCS('https://whmcs-example.com/includes/api.php', 'api-user', 'password', 'optional-access-key');

The URL should point to your WHMCS install's api.php file (usually in includes/). api-user is the username of the WHMCS administrator the API will be using, and password should be that user's password. If you are using the API access key instead of IP-filtering with WHMCS, specify the access key as well (optional-access-key), otherwise, leave it off/null. (For more information about the access key, see http://docs.whmcs.com/API:Access_Keys)

Return

Functions will return a PHP stdClass object with the results retrieved from WHMCS, unless an error is encountered. If WHMCS returns an error, a WhmcsException will be thrown; If CURL encounters an issue connecting (resolution errors, 404, etc), a standard Exception will be thrown. In most cases, WHMCS treats no results as an error condition itself, which will throw a WhmcsException; WHMCS is not very consistent however, so this may not always be the case :o)

Todo

This is mostly being developed inline with a project for Cadence Networks. As a result most of the functionality is being implemented in the order I need it, which is not necessarily this order:

Down the line:

Never (unless someone else submits a pull request for it).


~ Kat, http://twitter.com/b0redofb1nary // Cadence Networks: http://cadence.net.uk


All versions of whmcs-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 cmantito/whmcs-php contains the following files

Loading the files please wait ....