PHP code example of networkrailbusinesssystems / common

1. Go to this page and download the library: Download networkrailbusinesssystems/common 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/ */

    

networkrailbusinesssystems / common example snippets


'providers' => [
    // ...
    NetworkRailBusinessSystems\Common\CommonServiceProvider::class,
],

$uploadedFile = $formRequest->file('uploaded-file');

$expectedHeaders = ['name'];

$rules = [
    'name' => [' Csv::import($uploadedFile, $expectedHeaders, $rules, $messages);

$data = [...$someData];

/** @returns BinaryFileResponse */
return Csv::export('my-file', $data);