Git Product home page Git Product logo

ajglcsv's Introduction

AjglCsv

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.

ajglcsv's People

Contributors

ajgarlag avatar nubs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nubs

ajglcsv's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.