You need PHP >= 5.5.0 and the mbstring extension to use Csv but the latest stable version of PHP is recommended.
Csv is available on Packagist and can be installed using Composer:
composer require league/csv:^8.0
You can also use League\Csv without using Composer by downloading the library on Github.
The library is compatible with any PSR-4 compatible autoloader.
Also, League\Csv comes bundle with its own autoloader script autoload.php located in the root directory.
use League\Csv\Reader;
use League\Csv\Writer;
require '/path/to/league/csv/autoload.php';
//your script starts here
where path/to/league/csv represents the path where the library was extracted.
How can I help you explore Laravel packages today?