modern-php
modern-php copied to clipboard
scan.php
Hello, the scan.php (Ch. 4) did not work by me. I had to change the code as following:
<?php
require 'vendor/autoload.php';
use League\Csv\Reader;
$client = new \GuzzleHttp\Client();
$csv = Reader::createFromPath($argv[1]);
...
Cheers, Antonin
I saw the same ... to fix I just changed to this:
$csv = \League\Csv\Reader::createFromPath($argv[1]);
Thank you @bleen !
Thank you @AntoninSlejska