-
Make header_row specification more detailed
waldoj committedMar 11, 2014 -
Support CSVs without column titles
Automatically generate field names when column titles are missing, as specified by a URL parameter.
waldoj committedMar 11, 2014
-
Merge pull request #15 from waldoj/master
Move to labs.data.gov URLs and simplify examples
gbinal committedNov 23, 2013 -
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 committedNov 23, 2013
-
Merge pull request #12 from REI-Systems/master
csv-to-api minor changes from REI Systems, props @cman81.
benbalter committedJan 22, 2013 -
capitalized include path (for case-sensitive environments)
Updated documentation
cman81 committedJan 22, 2013
-
follow location when using curl, fixes #7
benbalter committedJan 5, 2013 -
actually sort results when requested, fixes #5
benbalter committedJan 5, 2013 -
store filtered data to `$this->data` before returning, fixes #6
benbalter committedJan 5, 2013 -
if no source is given, display documentation
benbalter committedJan 5, 2013 -
prevent error when URL is not provided
benbalter committedJan 5, 2013 -
change variable name to match project name
benbalter committedJan 5, 2013 -
Just normalize all line endings, rather than detecting.
benbalter committedJan 5, 2013 -
benbalter committed
Jan 5, 2013 -
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 committedJan 5, 2013
-
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 committedJan 1, 2013 -
Revert "Supporting different types of newlines."
This reverts commit 669a326.
waldoj committedJan 1, 2013 -
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 committedJan 1, 2013 -
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 committedJan 1, 2013
-
Removing "download" instruction
I sincerely hope that this is unnecessary.
waldoj committedDec 27, 2012 -
Strengthening recommendation for APC
waldoj committedDec 27, 2012 -
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 committedDec 27, 2012 -
waldoj committed
Dec 27, 2012
-
Providing descriptions of the query() and get_query_vars() methods.
waldoj committedNov 3, 2012 -
Because the intended audience for this package is governmental, better to illustrate the query structure with example.gov.
waldoj committedNov 3, 2012
-
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 committedOct 9, 2012
-
benbalter committed
Sep 28, 2012 -
benbalter committed
Sep 28, 2012 -
remove wordpress dependency, fixes #3
benbalter committedSep 28, 2012 -
benbalter committed
Sep 28, 2012
-
Accidentally reused a comment from another function, leading to an incorrect description
waldoj committedSep 14, 2012 -
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 committedSep 14, 2012
-
Merge pull request #1 from waldoj/master
Lend voice to the voiceless functions, props @waldoj
benbalter committedSep 13, 2012