Skip to content

Installation Composer

preslav-anev edited this page Jun 27, 2017 · 21 revisions

composer is the recommended way to install the SDK. Alternatively, if you prefer not to use Composer, but want to install our SDK, you can do so by doing a direct download

Instructions

Instructions on how to install Kount PHP SDK with Composer.

  1. Download Composer if not already installed.

  2. Go to your project directory. If you do not have one, just create a directory and cd in.

    $ mkdir project
    $ cd project
  3. Install Kount-PHP-SDK.

  • Execute "composer require kount/kount-ris-php-sdk:*" on command line. Replace composer with composer.phar if required. It should show something like this:
$ composer require kount/kount-ris-php-sdk:*

# Output: 
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing kount/kount-ris-php-sdk (6.5.0) Downloading: 100%
Writing lock file
Generating autoload files
  • Add "kount/kount-ris-php-sdk" : "*" in your composer.json and then run composer install. Expect something like this:
$ composer install  

# Output: 
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing kount/kount-ris-php-sdk (6.5.2): Loading from cache
Writing lock file
Generating autoload files

NOTE: The result from both approaches is identical and will have the same result.

  1. This is how your directory structure would look like. That's it. You have Kount PHP SDK installed.

Next Step