PHP code example of mango / mango-php

1. Go to this page and download the library: Download mango/mango-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mango / mango-php example snippets





Requests::register_autoloader();

$mango = new Mango\Mango(array(
    "api_key" => "YOUR_SECRET_API_KEY"
));

$customer = $mango->Customers->create(array(
    "email" => "[email protected]",
    "name" => "Test Customer"
));
var_dump($customer);

$customer = $mango->Customers->get("customer_1uqh884oy1ujh9y9eatm0jo3zxu0rm2s");
var_dump($customer);
javascript
{
  "go-php" : "dev-master"
  }
}
bash
$ git clone git://github.com/mango/mango-php.git
$ cd mango-php
$ composer install