Slender, elegant CSV for PHP5.6+

Build Status Coverage Status Scrutinizer Code Quality Documentation Status License

Project maintained by Luke Visinoni Official successor to, now defunct, PHP CSV Utilities
CSVelte: Slender, elegant, CSV for PHP5.3+

Introducing CSVelte

CSVelte is a simple yet flexible CSV and tabular data library for PHP5.6+. It was originally written as a pseudo-port of Python’s CSV module in early 2008 and was called PCU. Unfortunately my time was very limited and after only version 0.3, PCU went dormant. Fast forward to eight years later and I come across my own library in an unrelated Google search. Surprisingly, PCU had gained and then lost, a somewhat respectable user base. So I revived the project, rewrote it from the ground up using solid object-oriented design principles, keeping only the most basic concepts, and renamed it CSVelte (pronounced just like the word svelte).

Getting Started

CSVelte requires at least PHP5.6. For the most up-to-date installation instructions and user documentation, check out csvelte.phpcsv.com!


With Composer

To install using Composer, just use the following command. Once CSVelte reaches a stable version, it will be simply a matter of composer require nozavroni/csvelte but for the time being you will need the dev-master flag (or you can lower your minimum-stability setting) or Composer will complain and refuse to install.

$ composer require nozavroni/csvelte dev-master
Without Composer (direct download)

It is highly recommended that you install CSVelte uisng Composer. It is easier, and it ensures that you will always have the correct dependencies installed. But if you insist, you may download the latest version of CSVelte from Github. Extract the contents of the zip or tar archive to wherever you want the library to live on your system, and then include the src/autoload.php file, which will add CSVelte to your include path and register CSVelte's autoload function for you. That's it. Happy coding.

// obviously you will need to change this to your actual library location...
require_once "/path/to/CSVelte/src/autoload.php";

Learn More

User documentation: http://csvelte.phpcsv.com/

API documentation: http://phpcsv.com/csvelte/apidocs/latest/

Mailing list: https://groups.google.com/forum/#!forum/csvelte-users

GitHub: https://github.com/nozavroni/csvelte


CSVelte is a free (as in beer) library. I work on it in my spare time. If you like it, feel free to buy me beer. Contributions will help me to keep pumping out new features and bug fixes and to, eventually, create a dedicated CSVelte website. Or, if you have an idea for a new feature or a bug report, feel free to submit a pull request on Github.


CSVelte is also free as in speach. It is licensed under the MIT license, meaning basically, you can do whatever you want with it so long as you include the original copyright and license notice in any copy of the software/source.

About the author

CSVelte was designed and developed by Luke Visinoni. Feel free to drop me a line if you want to tell me how great it is.

E-mail: luke.visinoni@gmail.com
Twitter: https://twitter.com/lukevisinoni
Github: https://github.com/nozavroni
Google+: https://plus.google.com/+LukeVisinoni
LinkedIn: https://www.linkedin.com/in/visinoni
Stack Overflow: http://stackoverflow.com/users/4313666/luke-visinoni