PHP code example of bigin / shift
1. Go to this page and download the library: Download bigin/shift 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/ */
bigin / shift example snippets
use Bigin\Shift\Configuration\Configuration;
use Bigin\Shift\Instances\ColumnManager\ColumnDirectMapping;
use Bigin\Shift\Instances\ColumnManager\ColumnIndexMapping;
use Bigin\Shift\Instances\ColumnManager\ColumnRelativeMapping;
use Bigin\Shift\Instances\Validation\QuickValidation;
use Bigin\Shift\Operation\ImportFactory;
...
$colors = [
'Red' => 'Màu đỏ',
'Yellow' => 'Màu vàng',
'Green' => 'Xanh lá cây',
'Blue' => 'Xanh da trời',
'Pink' => 'Hồng'
];
$columns = [
new ColumnDirectMapping("STT", "id", new QuickValidation('numeric|