PHP code example of alexain / simple-spreadsheet-reader

1. Go to this page and download the library: Download alexain/simple-spreadsheet-reader 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/ */

    

alexain / simple-spreadsheet-reader example snippets

console)

[//]: # (use Alexain\SimpleSpreadsheetReaderBundle\Service\SimpleSpreadsheetReader;)

[//]: # ()
[//]: # (final class ImportService)

[//]: # ({)

[//]: # (    public function __construct&#40;)

[//]: # (        private SimpleSpreadsheetReader $reader)

[//]: # (    &#41; {})

[//]: # ()
[//]: # (    public function import&#40;string $path&#41;: void)

[//]: # (    {)

[//]: # (        foreach &#40;$this->reader->read&#40;$path&#41; as $row&#41; {)

[//]: # (            // $row is a normalized representation of a single record)

[//]: # (            // e.g. $row['email'], $row['created_at'], etc.)

[//]: # (        })

[//]: # (    })

[//]: # (})

[//]: # (