codeguy / modern-php

Companion code repository for Modern PHP by Josh Lockhart
Other
905 stars 276 forks source link

scan.php #4

Open AntoninSlejska opened 9 years ago

AntoninSlejska commented 9 years ago

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

bleen commented 9 years ago

I saw the same ... to fix I just changed to this:

$csv = \League\Csv\Reader::createFromPath($argv[1]);
zhangyongyu commented 8 years ago

Thank you @bleen !

igithub14 commented 7 years ago

Thank you @AntoninSlejska