PHP code example of merceslab / spreadsheet-client-bundle
1. Go to this page and download the library: Download merceslab/spreadsheet-client-bundle 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/ */
merceslab / spreadsheet-client-bundle example snippets
use MercesLab\Component\SpreadsheetClient\ClientInterface;
class SomeService
{
public function export(ClientInterface $client)
{
$client->write(['foor', 'bar',], 'myFile');
}
}
use MercesLab\Component\SpreadsheetClient\ClientInterface;
class SomeService
{
public function import(ClientInterface $client)
{
$data = $client->read('fileId');
}
}