The recommended method to install is through Composer.
-
Add
rebasedata/php-client
as a dependency in your project'scomposer.json
:{ "require": { "rebasedata/php-client": "*" } }
-
Download and install Composer:
curl -s http://getcomposer.org/installer | php
-
Install your dependencies:
php composer.phar install
-
Require Composer's autoloader
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:
<?php require 'vendor/autoload.php'; use RebaseData\Client; $client = new Client('freemium');
You can find out more about Composer at getcomposer.org.
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.
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.