{"repo":"craftgate/craftgate-php-client","free":true,"listed":false,"github":"https://github.com/craftgate/craftgate-php-client","clone":"git clone https://github.com/craftgate/craftgate-php-client.git","description":"PHP client for Craftgate API","language":"PHP","stars":29,"topics":["php","client-library","craftgate-api","php-client","craftgate","payment-gateway","php-sdk","payment","payment-orchestration"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Craftgate PHP Client This repo contains the PHP client for Craftgate API. Requirements - PHP 5.3 and later. Dependencies The following PHP extensions are required: curl json Installation Composer Download Composer and run the following command under your project. Manual Installation You need to download the latest release and copy to your project. Then, include the autoload file as shown below. This file will autoload all related classes into your project on-demand. Usage To access the Craftgate API you'll first need to obtain API credentials (e.g. an API key and a secret key). If you don't already have a Craftgate account, you can signup at https://craftgate.io/ Once you've obtained your API credentials, you can start using Craftgate by instantiating a Craftgate\\Craftgate with your credentials. By default the Craftgate client connects to the production API servers at https://api.craftgate.io . For testing purposes, please use the sandbox URL https://sandbox-api.craftgate.io . Examples Included in the project are a number of examples that cover almost all use-cases. Refer to the samples/ folder for more info. Running the Examples If you've cloned this repo on your development machine and wish to run the examples you can run an example with the command ./vendor/bin/phpunit Credit Card Payment Use Case Let's quickly review an example where we implement a credit card payment scenario. For more examples covering almost all use-cases, check out the examples in the samples/ folder ","default_branch":null,"files":null,"tree":[],"storefront":"/r/craftgate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/craftgate/craftgate-php-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}