PHPackages                             colbygatte/smart-csv - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. colbygatte/smart-csv

ActiveLibrary

colbygatte/smart-csv
====================

Easy CSV manipulation.

v0.0.10(8y ago)0114MITPHP

Since Jun 3Pushed 8y agoCompare

[ Source](https://github.com/colbygatte/SmartCsv)[ Packagist](https://packagist.org/packages/colbygatte/smart-csv)[ RSS](/packages/colbygatte-smart-csv/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (13)Used By (0)

Smart Csv
=========

[](#smart-csv)

### File: `people.csv`

[](#file-peoplecsv)

```
name,age,address,Favorite Type Of Food,attribute 1,value 1,note 1,attribute 2,value 2,note 2
Colby,26,1234 Country Lane,burgers,hair color,brown,nil,height,6,so tall
Mark,28,4321 City Street,ramen,shoe size,9,big foot!,height,5'9'',so short
Tammy,29,2314 Bayou Road,steak,pant size,4,nil,ring size,7,beautiful!
```

Overview of helper functions
============================

[](#overview-of-helper-functions)

- `csv()` - Used for creating CSV's. Accepts one parameter: The header.
- `csv_sip()` - Read a CSV row-by-row. Accepts on parameter: The file path or file handle
- `csv_slurp()` - Read an entire CSV into memory. Accepts one parameter: The file path or file handle
- `csv_writer()`
- `csv_alter()`

Basic usage
===========

[](#basic-usage)

Use `csv()` for creating a new CSV

```
