Permalink
Commits on Nov 3, 2014
  1. Merge pull request #22 from waldoj/master

    Support title-less CSVs
    gbinal committed Nov 3, 2014
Commits on Mar 11, 2014
  1. Support CSVs without column titles

    Automatically generate field names when column titles are missing, as
    specified by a URL parameter.
    waldoj committed Mar 11, 2014
Commits on Nov 23, 2013
  1. Merge pull request #15 from waldoj/master

    Move to labs.data.gov URLs and simplify examples
    gbinal committed Nov 23, 2013
  2. Move to labs.data.gov URLs

    This gives us live examples to demonstrate. Also, remove `&source_format=csv` from the URLs, since they're no longer necessary with URLs that explicitly end in `.csv`.
    waldoj committed Nov 23, 2013
  3. Switch CSV file used in examples

    Closes #8.
    waldoj committed Nov 23, 2013
Commits on Jan 22, 2013
  1. Merge pull request #12 from REI-Systems/master

    csv-to-api minor changes from REI Systems, props @cman81.
    benbalter committed Jan 22, 2013
  2. capitalized include path (for case-sensitive environments)

    Updated documentation
    cman81 committed Jan 22, 2013
Commits on Jan 5, 2013
  1. whitespace cleanup

    benbalter committed Jan 5, 2013
  2. Wrap `str_getcsv` to support PHP < 5.3, Fixes #9.

    Fallback to fgetcsv if `str_getcsv` doesn't exist.
    
    Code was originally written for https://github.com/paulirish/infinite-scroll/blob/master/wordpress-plugin/includes/presets.php#L406.
    benbalter committed Jan 5, 2013
Commits on Jan 1, 2013
  1. Supporting different types of newlines

    Only \n (Unix) newlines were supported. The use of \r (nominally old
    Macintosh) is widespread, and failed on the first government-generated
    CSV file that I tried. Also common are \r\n (Windows) newlines. This
    will determine which type of newline is most common in the file and
    default to that.
    waldoj committed Jan 1, 2013
  2. Revert "Supporting different types of newlines."

    This reverts commit 669a326.
    waldoj committed Jan 1, 2013
  3. Supporting different types of newlines.

    Only \n (Unix) newlines were supported. The use of \r (nominally old
    Macintosh) is widespread, and failed on the first government-generated
    CSV file that I tried. Also common are \r\n (Windows) newlines. This
    will determine which type of newline is most common in the file and
    default to that.
    waldoj committed Jan 1, 2013
  4. Providing fall-back support for cURL

    Addressing issue #4, I've added an ini_get check to see if fopen has
    URL support. If it does not, then it falls back on using a newly
    established method, curl_get(), to retrieve the same data.
    waldoj committed Jan 1, 2013
Commits on Dec 27, 2012
  1. Removing "download" instruction

    I sincerely hope that this is unnecessary.
    waldoj committed Dec 27, 2012
  2. Italicizing each use of the package name

    The instructions are unclear in places because "CSV to API" is a
    totally reasonable phrase that is expected to be found within this
    readme, but it's also the name of the project. The solution is to
    stylize the title of the program.
    waldoj committed Dec 27, 2012
  3. Making instructions clearer

    waldoj committed Dec 27, 2012
Commits on Nov 3, 2012
  1. Commenting final two methods

    Providing descriptions of the query() and get_query_vars() methods.
    waldoj committed Nov 3, 2012
  2. Changing Example URLs

    Because the intended audience for this package is governmental, better to illustrate the query structure with example.gov.
    waldoj committed Nov 3, 2012
Commits on Oct 9, 2012
  1. Substantial expansion of content

    Added "what problem this solves" and "how this solves it" sections,
    rewrote one-line description, expanded requirements, rewrote usage
    instructions, cleaned up arguments list, rewrote example URLs, and
    generally cleaned up punctuation etc.
    waldoj committed Oct 9, 2012
Commits on Sep 28, 2012
  1. whitespace cleanup

    benbalter committed Sep 28, 2012
  2. documentation

    benbalter committed Sep 28, 2012
  3. rename class

    benbalter committed Sep 28, 2012
Commits on Sep 14, 2012
  1. Correct a comment

    Accidentally reused a comment from another function, leading to an
    incorrect description
    waldoj committed Sep 14, 2012
  2. Further commenting and formatting code for clarity

    In addition to continuing efforts to explain what all of the
    functionality does, to make it easier to understand by people who do
    not know PHP, I've also started moving away from the short forms of PHP
    employed here. (Specifically, putting all conditionals and loops within
    braces.) This is done only for clarity, specifically for people not
    familiar with PHP.
    waldoj committed Sep 14, 2012
Commits on Sep 13, 2012
  1. Merge pull request #1 from waldoj/master

    Lend voice to the voiceless functions, props @waldoj
    benbalter committed Sep 13, 2012