-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from cordoval/improvements
various improvements
- Loading branch information
Showing
12 changed files
with
20 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
.DS_Store | ||
/.idea | ||
.phpmake | ||
/vendor | ||
/composer.phar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ Goodby CSV is fully unit-tested. The library is stable and ready to be used in l | |
|
||
Install composer in your project: | ||
|
||
``` | ||
```bash | ||
curl -s http://getcomposer.org/installer | php | ||
``` | ||
|
||
|
@@ -60,7 +60,7 @@ Create a `composer.json` file in your project root: | |
|
||
Install via composer: | ||
|
||
``` | ||
```bash | ||
php composer.phar install | ||
``` | ||
|
||
|
@@ -130,7 +130,7 @@ $lexer->parse('rough.csv', $interpreter); | |
|
||
user.csv: | ||
|
||
``` | ||
```csv | ||
1,alice,[email protected] | ||
2,bob,[email protected] | ||
3,carol,[email protected] | ||
|
@@ -155,14 +155,13 @@ $interpreter->addObserver(function(array $columns) use ($pdo) { | |
}); | ||
|
||
$lexer->parse('user.csv', $interpreter); | ||
|
||
``` | ||
|
||
### Import from TSV(tab separated values) to array | ||
|
||
temperature.tsv: | ||
|
||
``` | ||
```csv | ||
9 Tokyo | ||
27 Singapore | ||
-5 Seoul | ||
|
@@ -303,7 +302,7 @@ We works under test driven development. | |
|
||
Checkout master source code from github: | ||
|
||
``` | ||
```bash | ||
hub clone goodby/csv | ||
``` | ||
|
||
|
@@ -319,10 +318,10 @@ composer.phar install --dev | |
|
||
Run phpunit: | ||
|
||
``` | ||
```bash | ||
./vendor/bin/phpunit | ||
``` | ||
|
||
## Acknowledgement | ||
|
||
editing... | ||
Credits are found within composer.json file. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
/** | ||
* standard interpreter | ||
* | ||
*/ | ||
class Interpreter implements InterpreterInterface | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
|
||
/** | ||
* unit test for pdo observer | ||
* | ||
*/ | ||
class PdoObserverTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters