Skip to content

Commit

Permalink
Bump to version 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Mar 23, 2014
1 parent b7397df commit a2a0cd9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 19 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,14 @@ Contribute to this documentation in the [sculpin branch](https://github.com/thep

* When creating a file using the library, first insert all the data that need to be inserted before starting manipulating the CSV. If you manipulate your data before insertion, you may change the file cursor position and get unexpected results.

* If you are dealing with non-unicode data, specify the encoding parameter using the `setEncoding` method otherwise your output conversions may no work.

* If you have your LC_CTYPE set to a locale that's using UTF-8 and you try to parse a file that's not in UTF-8, PHP will cut your fields the moment it encounters a byte it can't understand (i.e. any outside of ASCII that doesn't happen to be part of a UTF-8 character which it likely isn't). [This gist will show you a possible solution](https://gist.github.com/pilif/9137146) to this problem by using [PHP stream filter](http://www.php.net/manual/en/stream.filters.php). This tip is from [Philip Hofstetter](https://github.com/pilif)

* When merging multiples CSV documents don't forget to set the main CSV object
as a `League\Csv\Writer` object with the `$open_mode = 'a+'` to preserve its content.
This setting is of course not required when your main `League\Csv\Writer` object is
created from String

* **If you are on a Mac OS X Server**, add the following lines before using the library to help [PHP detect line ending in Mac OS X](http://php.net/manual/en/function.fgetcsv.php#refsect1-function.fgetcsv-returnvalues).
* If you are dealing with non-unicode data, specify the encoding parameter using the `setEncoding` method otherwise your output conversions may no work.

```php
if (! ini_get("auto_detect_line_endings")) {
ini_set("auto_detect_line_endings", true);
}
```
* If you have your LC_CTYPE set to a locale that's using UTF-8 and you try to parse a file that's not in UTF-8, PHP will cut your fields the moment it encounters a byte it can't understand (i.e. any outside of ASCII that doesn't happen to be part of a UTF-8 character which it likely isn't). [This gist will show you a possible solution](https://gist.github.com/pilif/9137146) to this problem by using [PHP stream filter](http://www.php.net/manual/en/stream.filters.php). This tip is from [Philip Hofstetter](https://github.com/pilif)

Testing
-------
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/ConverterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/IteratorFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/IteratorInterval.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/IteratorQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/IteratorSortBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/MapIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down
2 changes: 1 addition & 1 deletion src/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright 2014 Ignace Nyamagana Butera
* @link https://github.com/nyamsprod/League.csv
* @license http://opensource.org/licenses/MIT
* @version 5.2.0
* @version 5.3.0
* @package League.csv
*
* MIT LICENSE
Expand Down

0 comments on commit a2a0cd9

Please sign in to comment.