dev-master
9999999-devRebaseData API client for PHP
MIT
The Requires
- php >=5.5
- guzzlehttp/guzzle ^6.3
Wallogit.com
2017 © Pedro Peláez
RebaseData API client for PHP
THIS IS THE OLD VERSION OF THE REBASEDATA PHP-CLIENT LIBRARY. THE NEW VERSION CAN BE FOUND HERE: https://github.com/rebasedata/php-client, (*1)
The recommended method to install is through Composer., (*2)
Add rebasedata/php-client as a dependency in your project's composer.json:, (*3)
{
"require": {
"rebasedata/php-client": "*"
}
}
Download and install Composer:, (*4)
curl -s http://getcomposer.org/installer | php
Install your dependencies:, (*5)
php composer.phar install
Require Composer's autoloader, (*6)
Composer also prepares an autoloader file that helps to autoload the libraries it downloads. To use it, just add the following line to your application:, (*7)
<?php
require 'vendor/autoload.php';
use RebaseData\Client;
$client = new Client('freemium');
You can find out more about Composer at getcomposer.org., (*8)
The following code is an example on how to convert a Microsoft Access ACCDB file to a ZIP-archive of CSV files. You can replace 'freemium' with the Customer Key that you purchased., (*9)
use RebaseData\Client;
$client = new Client('freemium');
$inputFiles = ['/tmp/access.accdb'];
$outputFile = $client->convertAndReceiveZip($inputFiles);
echo "Conversion successful, check out $outputFile!\n";
This code is licensed under the MIT license., (*10)
RebaseData API client for PHP
MIT