2017 © Pedro Peláez
 

library csv

Csv data manipulation made easy in PHP

image

league/csv

Csv data manipulation made easy in PHP

  • Monday, July 30, 2018
  • by nyamsprod
  • Repository
  • 62 Watchers
  • 1647 Stars
  • 7,086,344 Installations
  • PHP
  • 244 Dependents
  • 50 Suggesters
  • 196 Forks
  • 0 Open issues
  • 49 Versions
  • 11 % Grown

The README.md

CSV

Latest Version Software License Build Total Downloads, (*1)

Csv is a library to ease parsing, writing and filtering CSV in PHP. The library goal is to be powerful while remaining lightweight, by utilizing PHP native features whenever possible., (*2)

Highlights

  • Straightforward API
  • Read from and Write to CSV documents in a memory efficient and scalable way
  • Flexible and powerful query features and array to object mapping.
  • Transform CSV documents into popular format (JSON, XML or HTML)
  • Support PHP stream filtering capabilities
  • Fully documented
  • Fully unit tested
  • Framework-agnostic

Documentation

Full documentation can be found at csv.thephpleague.com., (*3)

System Requirements

You need the ext-filter extension to use Csv and the latest stable version of PHP is recommended., (*4)

Please find below the PHP support for Csv version 9., (*5)

Min. Library Version Min. PHP Version Max. Supported PHP Version
9.0.0 PHP 7.0.10 PHP 7.1.x
9.1.2 PHP 7.0.10 PHP 7.2.x
9.2.0 PHP 7.0.10 PHP 7.4.x
9.6.0 PHP 7.2.5 PHP 7.4.x
9.6.2 PHP 7.2.5 PHP 8.0.x
9.7.0 PHP 7.3.0 PHP 8.0.x
9.7.3 PHP 7.3.0 PHP 8.1.x
9.8.0 PHP 7.4.0 PHP 8.1.x
9.9.0 PHP 8.1.2 PHP 8.3.x
9.16.0 PHP 8.1.2 PHP 8.x

Install

Install Csv using Composer., (*6)

composer require league/csv:^9.0

Configuration

[!WARNING] Starting with PHP8.4 Deprecation notices will be trigger if you do not explicitly set the escape parameter. see Deprecation for PHP8.4 and CSV and PHP8.4, (*7)

[!TIP] If your CSV document was created or is read on a Legacy Macintosh computer, add the following lines before using the library to help PHP detect line ending., (*8)

if (!ini_get('auto_detect_line_endings')) {
    ini_set('auto_detect_line_endings', '1');
}

[!WARNING] The ini setting is deprecated since PHP version 8.1 and will be removed in PHP 9.0, (*9)

Testing

The library has:, (*10)

  • a PHPUnit test suite.
  • a coding style compliance test suite using PHP CS Fixer.
  • a code analysis compliance test suite using PHPStan.

To run the tests, run the following command from the project folder., (*11)

composer test

Contributing

Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CONDUCT for details., (*12)

Security

If you discover any security related issues, please email nyamsprod@gmail.com instead of using the issue tracker., (*13)

Changelog

Please see CHANGELOG for more information on what has changed recently., (*14)

Credits

License

The MIT License (MIT). Please see LICENSE for more information., (*15)

The Versions

30/07 2018

dev-master

9999999-dev http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

01/05 2018

9.1.4

9.1.4.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

21/03 2018

dev-bugfix/issue-287

dev-bugfix/issue-287 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

12/03 2018

9.1.3

9.1.3.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

06/02 2018

8.x-dev

8.9999999.9999999.9999999-dev http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

06/02 2018

8.2.3

8.2.3.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

05/02 2018

9.1.2

9.1.2.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

28/11 2017

9.1.1

9.1.1.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

20/10 2017

9.1.0

9.1.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

31/08 2017

dev-feature/enclosure-filter

dev-feature/enclosure-filter http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

21/08 2017

9.0.1

9.0.1.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

18/08 2017

9.0.0

9.0.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=7.0.10

 

The Development Requires

csv read write filter export import

12/07 2017

8.2.2

8.2.2.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

23/02 2017

8.2.1

8.2.1.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

25/01 2017

8.2.0

8.2.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

27/10 2016

8.1.2

8.1.2.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

05/09 2016

8.1.1

8.1.1.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

30/05 2016

8.1.0

8.1.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

11/12 2015

8.0.0

8.0.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.5.0

 

The Development Requires

csv read write filter export import

02/11 2015

7.2.0

7.2.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

10/06 2015

7.1.2

7.1.2.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

20/05 2015

7.1.1

7.1.1.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

06/05 2015

7.1.0

7.1.0.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

23/03 2015

7.0.1

7.0.1.0 http://csv.thephpleague.com

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

19/02 2015

7.0.0

7.0.0.0

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

21/01 2015

6.3.0

6.3.0.0

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

12/12 2014

6.2.0

6.2.0.0

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

08/12 2014

6.1.0

6.1.0.0

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

12/11 2014

6.0.1

6.0.1.0

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

28/08 2014

6.0.0

6.0.0.0

Csv data manipulation made easy in PHP

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

17/04 2014

5.4.0

5.4.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

09/04 2014

5.3.1

5.3.1.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

24/03 2014

5.3.0

5.3.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

13/03 2014

5.2.0

5.2.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

11/03 2014

5.1.0

5.1.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

The Development Requires

csv read write filter export import

28/02 2014

5.0.0

5.0.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv read write filter export import

22/02 2014

4.2.1

4.2.1.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv read write filter export import

17/02 2014

4.2.0

4.2.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv read write filter export import

14/02 2014

4.1.2

4.1.2.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv read write filter export import

14/02 2014

4.1.1

4.1.1.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv read write filter export import

07/02 2014

4.1.0

4.1.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv read write filter export import

05/02 2014

4.0.0

4.0.0.0

Csv data manipulation made easy in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv filtering export iterator import splfileobject reading writing

28/01 2014

3.3.0

3.3.0.0

A simple library to easily load, manipulate and save CSV files in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable

16/01 2014

3.2.0

3.2.0.0

A simple library to easily load, manipulate and save CSV files in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable

13/01 2014

3.1.0

3.1.0.0

A simple library to easily load, manipulate and save CSV files in PHP 5.4+

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable

10/01 2014

3.0.1

3.0.1.0

Bakame/csv is a lightweight PHP CSV Manipulation library

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable

10/01 2014

3.0.0

3.0.0.0

Bakame/csv is a lightweight PHP CSV Manipulation library

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable

09/01 2014

2.0.0

2.0.0.0

Bakame/csv is a lightweight PHP CSV Manipulation library

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable

03/12 2013

1.0.0

1.0.0.0

Bakame / csv is a lightweight PHP CSV Manipultion library

  Sources   Download

MIT

The Requires

  • ext-mbstring *
  • php >=5.4.0

 

csv php splfileobject splfileinfo mb_string spltmpfileobject traversable