The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Connections Settings

Inserting Records

Selecting Records

Interoperability

Converting Records

Upgrading Guide

This is the documentation for the upcoming version 9.0. This is a work in progress

Installation

System Requirements

You need PHP >= 7.0.10 and the mbstring extension to use Csv but the latest stable version of PHP is recommended.

Composer

Csv is available on Packagist and can be installed using Composer:

$ composer require league/csv:^9.0

Going Solo

You can also use League\Csv without using Composer by downloading the library and using any other PSR-4 compatible autoloader.

League\Csv comes bundle with its own autoloader script autoload.php located in the root directory.

<?php

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.