ajgl/csv

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple library to read and write CSV files (includes a RFC 4180 compliant implementation)

Maintainers

πŸ‘ ajgarlag

Package info

github.com/ajgarlag/AjglCsv

pkg:composer/ajgl/csv

Statistics

Installs: 8 881

Dependents: 1

Suggesters: 0

Stars: 5

Open Issues: 0

0.5.1 2020-12-18 09:10 UTC

Requires

Requires (Dev)

Suggests

  • ext-iconv: Enabling the iconv extension allows you to convert the string using the IconvConverter class

Provides

None

Conflicts

None

Replaces

None

MIT 385b2be9e3ef87a086156546a078d9fa2b352861

csv

This package is auto-updated.

Last update: 2021-10-19 11:06:19 UTC


README

The AjglCsv component allows you to read and write CSV files.

πŸ‘ Build Status
πŸ‘ Latest Stable Version
πŸ‘ Latest Unstable Version
πŸ‘ Total Downloads
πŸ‘ Montly Downloads
πŸ‘ Daily Downloads
πŸ‘ License
πŸ‘ SensioLabsInsight

There are currently two different implementations for the reader and writer classes:

  • An implementation using the native fgetcsv and fputcsv functions
  • An implementation compatible with the RFC 4180

Installation

To install the latest stable version of this component, open a console and execute the following command:

$ composer require ajgl/csv

Usage

The simplest way to use this library is to create a Ajgl\Csv\Csv instance with:

$csv = Ajgl\Csv\Csv::create();

By default, the library uses the native f??tcsv functions. If you want to read or write RFC 4180 compatible files, you should set the default reader and writer types to rfc with:

$csv->setDefaultReaderType('rfc');
$csv->setDefaultWriterType('rfc');

To create a new CSV reader or writer, you should call:

$reader = $csv->createReader('/path/to/input.csv');
$writer = $csv->createWriter('/path/to/output.csv');

Symfony Bundle

If you need to integrate these library into your Symfony Framework app, you can install the AjglCsvBundle.

License

This component is under the MIT license. See the complete license in the LICENSE file.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

Author Information

Developed with β™₯ by Antonio J. GarcΓ­a Lagar.

If you find this component useful, please add a β˜… in the GitHub repository page and/or the Packagist package page.