Download the PHP package cheddar-getter/client without Composer

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

Install

Via Composer

  1. Get Composer
  2. Learn Composer
  3. Define the requirement in your project composer.json file:

  4. Run composer install from your command line.
  5. Make sure you either have the cUrl extension installed in your PHP build or Zend_Http_Client (ZF1) is available via autoload. Our composer.json only suggests these packages but one or the other is required unless you build your own HTTP adapter (see below).

As a Git submodule

git clone git://github.com/marcguyer/cheddargetter-client-php.git /path/to/includepath/CheddarGetter

The 'CheddarGetter' directory must not exist prior to running the above command.

Just download it, geez

Download and unzip the files and put them in a directory called /path/to/includepath/CheddarGetter

Basic Usage

Instantiate the Client Object

Create a Customer

Get a Customer

Error Handling

CheddarGetter_Client throws CheddarGetter_Client_Exception containing the error information.

CheddarGetter_Response throws CheddarGetter_Response_Exception containing the error information.

If the CheddarGetter API returns an error document, a CheddarGetter_Response_Exception is thrown. This can happen during the normal course of operation and the error data in the exception should be presented to the user or handled according to your specs. Here's a quick and dirty example:

More information about errors is available in the Error Handling knowledge base article. You can and should test by simulating the possible errors.

Advanced Usage

The adapter pattern (thanks to https://github.com/stof) is used so you can specify your own http adapter and/or super globals access adapter. The default built-in adapters use cUrl for http communication, and super globals are accessed directly. Also included are Zend Framework compatible adapters. If you've created an adapter of your own that should be included, just send us a pull request from your fork. Here's an example using a custom HTTP adapter:

Specify a custom HTTP adapter

Specify a custom super globals access adapter

Contributing

Writing code

Pull requests are welcome! Please fork us, write and issue a pull request. Learn more about contributing to open source projects via GitHub

Asking questions

Support Forum

The best way to ask questions is via the CheddarGetter Support Forum.

GitHub Issues

You're also welcome to open a new issue if your inquiry is of a technical nature or you think you've found a bug.

Documentation

Check 'em out in the /docs directory or as hosted on GitHub: http://marcguyer.github.io/cheddargetter-client-php/

Also, raw API docs are here: http://cheddargetter.com/developers


All versions of 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 cheddar-getter/client contains the following files

Loading the files please wait ....