Proposal for "File_CSV_Get"

» Metadata » Status
» Description
NOT a csv parser but a simple Data Access Object
to ease fetching data in a csv file.


Some features

Transformation/Manipulation

1. asymmetry asymmetric data fetcher
2. coordinateable checks if a coordinate is valid
3. rawArray raw data as array
4. settings settings alterator
5. symmetric data length/symmetry checker
6. symmetrize all rows length equalizer
7. uses csv file loader
8. walkGrid grid walker

Headers

1. connect header and row relationship builder
2. countHeaders header counter
3. createHeaders header creator
4. headers header fetcher
5. injectHeaders header injector

Columns

1. appendColumn column appender
2. column column fetcher
3. columnExists column existance checker
4. fillColumn collumn data injector
5. removeColumn column remover
6. walkColumn column walker

Rows

1. appendRow row appender
2. countRows row counter
3. fillRow fillRow
4. removeRow row remover
5. row row fetcher
6. rowExists row existance checker
7. rows multiple row fetcher
8. walkRow row walker

Cells

1. cell cell fetcher
2. fillCell cell value

Comming soon

1. columns (gets a range of columns)
2. export (gets altered data as a csv string)
3. url parsing

INFORMATION
http://code.google.com/p/php-csv-parser/wiki/DontReadThis

simple examples

english
http://code.google.com/p/php-csv-parser/wiki/howToUse

japanese
http://code.google.com/p/php-csv-parser/wiki/howToUseJAPANESE

spanish
http://code.google.com/p/php-csv-parser/wiki/howToUseSPANISH


project
http://code.google.com/p/php-csv-parser/


Using the package (quick sample)

csv file

name,age,skill
john,13,knows magic
tanaka,8,makes sushi
jose,5,dances salsa



<?php

require_once 'File/CSV/Get.php';

$csv = new File_CSV_Get;
$csv->uses('my_cool.csv');
var_export($csv->connect());

?>


output


array (
0 =>
array (
'name' => 'john',
'age' => '13',
'skill' => 'knows magic',
),
1 =>
array (
'name' => 'tanaka',
'age' => '8',
'skill' => 'makes sushi',
),
2 =>
array (
'name' => 'jose',
'age' => '5',
'skill' => 'dances salsa',
),
)
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2008-10-10
  • Proposal: 2008-11-15
  • Call for Votes: 2008-11-30
  • Voting Extended: 2008-12-07
  • Kazuyoshi Tlacaelel
    [2008-11-21 15:02 UTC]

    Some features
    Transformation/Manipulation

    1. asymmetry asymmetric data fetcher
    2. coordinateable checks if a coordinate is valid
    3. rawArray raw data as array
    4. settings settings alterator
    5. symmetric data length/symmetry checker
    6. symmetrize all rows length equalizer
    7. uses csv file loader
    8. walkGrid grid walker

    Headers

    1. connect header and row relationship builder
    2. countHeaders header counter
    3. createHeaders header creator
    4. headers header fetcher
    5. injectHeaders header injector

    Columns

    1. appendColumn column appender
    2. column column fetcher
    3. columnExists column existance checker
    4. fillColumn collumn data injector
    5. removeColumn column remover
    6. walkColumn column walker

    Rows

    1. appendRow row appender
    2. countRows row counter
    3. fillRow fillRow
    4. removeRow row remover
    5. row row fetcher
    6. rowExists row existance checker
    7. rows multiple row fetcher
    8. walkRow row walker

    Cells

    1. cell cell fetcher
    2. fillCell cell value

    Comming soon

    1. columns (gets a range of columns)
    2. export (gets altered data as a csv string)
    3. url parsing
  • Kazuyoshi Tlacaelel
    [2008-11-24 12:23 UTC]

    added documentation, transformed from phpdoc into wiki. still needs work though!
  • Kazuyoshi Tlacaelel
    [2008-11-27 13:31 UTC]

    new release, changes to documentation!
    new features comming soon.

    grepColumn(..)
    grepRow(..)
    grepGrid(..)

    Note: Package ships with updated documentation.
  • Kazuyoshi Tlacaelel
    [2008-11-27 13:43 UTC]


    Deprecations

    1. columnExists will be renamed to hasColumn
    2. rowExists will be renamed to hasRow