You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+76-2Lines changed: 76 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,36 @@
2
2
3
3
All Notable changes to `Csv` will be documented in this file
4
4
5
-
## Next
5
+
## 8.2.0 - 2017-01-25
6
6
7
7
### Added
8
8
9
9
-`AbstractCsv::createFromStream` to enable working with resource stream [issue #202](https://github.com/thephpleague/csv/issues/202)
10
10
11
11
### Deprecated
12
12
13
-
- None
13
+
-`League\Csv\AbstractCsv::stripBom`
14
+
-`League\Csv\Reader::getOffset`
15
+
-`League\Csv\Reader::getLimit`
16
+
-`League\Csv\Reader::getSortBy`
17
+
-`League\Csv\Reader::getFilter`
18
+
-`League\Csv\Reader::setOffset`
19
+
-`League\Csv\Reader::setLimit`
20
+
-`League\Csv\Reader::addSortBy`
21
+
-`League\Csv\Reader::addFilter`
22
+
-`League\Csv\Reader::fetch`
23
+
-`League\Csv\Reader::each`
24
+
-`League\Csv\Reader::fetchPairsWithoutDuplicates`
25
+
-`League\Csv\Reader::fetchAssoc`
26
+
-`League\Csv\Writer::removeFormatter`
27
+
-`League\Csv\Writer::hasFormatter`
28
+
-`League\Csv\Writer::clearFormatters`
29
+
-`League\Csv\Writer::removeValidator`
30
+
-`League\Csv\Writer::hasValidator`
31
+
-`League\Csv\Writer::clearValidators`
32
+
-`League\Csv\Writer::jsonSerialize`
33
+
-`League\Csv\Writer::toHTML`
34
+
-`League\Csv\Writer::toXML`
14
35
15
36
### Fixed
16
37
@@ -216,6 +237,7 @@ All Notable changes to `Csv` will be documented in this file
216
237
## 7.0.0 - 2015-02-19
217
238
218
239
### Added
240
+
219
241
- A new flexible mechanism to format and validate a row before its insertion by adding
220
242
-`Writer::addFormatter` to add a formatter to the `Writer` object
221
243
-`Writer::removeFormatter` to remove an already registered formatter
@@ -232,9 +254,11 @@ All Notable changes to `Csv` will be documented in this file
232
254
-`League\Csv\Plugin\SkipNullValuesFormatter` to format `null` value on insertion
233
255
234
256
### Deprecated
257
+
235
258
- Nothing
236
259
237
260
### Fixed
261
+
238
262
-`jsonSerialize`, `toXML` and `toHTML` output can be modified using `Reader` query options methods.
239
263
-`AbstractCSV::detectDelimiterList` index keys now represents the occurrence of the found delimiter.
240
264
-`getNewline` and `setNewline` are accessible on the `Reader` class too.
@@ -247,6 +271,7 @@ All Notable changes to `Csv` will be documented in this file
247
271
-`Reader::fetchColumn` will automatically filter out non existing values from the return array
248
272
249
273
### Removed
274
+
250
275
- Setting `ini_set("auto_detect_line_endings", true);` is no longer set in the class constructor. Mac OS X users must explicitly set this ini options in their script.
251
276
-`Writer` and `Reader` default constructor are removed from public API in favor of the named constructors.
252
277
- All `Writer` methods and constant related to CSV data validation and formatting before insertion
@@ -262,6 +287,7 @@ All Notable changes to `Csv` will be documented in this file
262
287
## 6.3.0 - 2015-01-21
263
288
264
289
### Added
290
+
265
291
-`AbstractCSV::setOutputBOM`
266
292
-`AbstractCSV::getOutputBOM`
267
293
-`AbstractCSV::getInputBOM`
@@ -283,6 +309,7 @@ to manage BOM character with CSV.
283
309
## 6.2.0 - 2014-12-12
284
310
285
311
### Added
312
+
286
313
-`Writer::setNewline` , `Writer::getNewline` to control the newline sequence character added at the end of each CSV row.
287
314
288
315
### Deprecated
@@ -300,6 +327,7 @@ to manage BOM character with CSV.
300
327
## 6.1.0 - 2014-12-08
301
328
302
329
### Added
330
+
303
331
-`Reader::fetchAssoc` now also accepts an integer as first argument representing a row index.
304
332
305
333
### Deprecated
@@ -325,6 +353,7 @@ to manage BOM character with CSV.
325
353
- Nothing
326
354
327
355
### Fixed
356
+
328
357
- Bug Fixed `detectDelimiterList`
329
358
330
359
### Removed
@@ -334,19 +363,23 @@ to manage BOM character with CSV.
334
363
## 6.0.0 - 2014-08-28
335
364
336
365
### Added
366
+
337
367
- Stream Filter API in `League\Csv\AbstractCsv`
338
368
- named constructors `createFromPath` and `createFromFileObject` in `League\Csv\AbstractCsv` to ease CSV object instantiation
339
369
-`detectDelimiterList` in `League\Csv\AbstractCsv` to replace and remove the use of `RuntimeException` in `detectDelimiter`
340
370
-`setEncodingFrom` and `setDecodingFrom` in `League\Csv\AbstractCsv` to replace `setEncoding` and `getEncoding` for naming consistency
341
371
-`newWriter` and `newReader` methods in `League\Csv\AbstractCsv` to replace `Writer::getReader` and `Reader::getWriter`
342
372
343
373
### Deprecated
374
+
344
375
- Nothing
345
376
346
377
### Fixed
378
+
347
379
-`League\Csv\Reader::each` more strict `$callable` MUST returns `true`
348
380
349
381
### Remove
382
+
350
383
-`League\Csv\AbstractCsv::detectDelimiter`
351
384
-`League\Csv\AbstractCsv::setEncoding` and `League\Csv\AbstractCsv::getEncoding`
352
385
-`League\Csv\Reader::setSortBy`
@@ -363,9 +396,11 @@ to manage BOM character with CSV.
363
396
-`League\Csv\Reader::fetchColumn` replaces `League\Csv\Reader::fetchCol` for naming consistency
364
397
365
398
### Deprecated
399
+
366
400
-`League\Csv\Reader::fetchCol`
367
401
368
402
### Fixed
403
+
369
404
- Nothing
370
405
371
406
### Removed
@@ -375,12 +410,15 @@ to manage BOM character with CSV.
375
410
## 5.3.1 - 2014-04-09
376
411
377
412
### Added
413
+
378
414
- Nothing
379
415
380
416
### Deprecated
417
+
381
418
- Nothing
382
419
383
420
### Fixed
421
+
384
422
-`$open_mode` default to `r+` in `League\Csv\AbstractCsv` constructors
385
423
386
424
### Removed
@@ -390,12 +428,15 @@ to manage BOM character with CSV.
390
428
## 5.3.0 - 2014-03-24
391
429
392
430
### Added
431
+
393
432
-`League\Csv\Writer::setNullHandlingMode` and `League\Csv\Writer::getNullHandlingMode` to handle `null` value
394
433
395
434
### Deprecated
435
+
396
436
- Nothing
397
437
398
438
### Fixed
439
+
399
440
-`setting ini_set("auto_detect_line_endings", true);` no longer needed for Mac OS
400
441
401
442
### Removed
@@ -405,13 +446,16 @@ to manage BOM character with CSV.
405
446
## 5.2.0 - 2014-03-13
406
447
407
448
### Added
449
+
408
450
-`League\Csv\Reader::addSortBy`, `League\Csv\Reader::removeSortBy`, `League\Csv\Reader::hasSortBy`, `League\Csv\Reader::clearSortBy` to improve sorting
409
451
-`League\Csv\Reader::clearFilter` to align extract filter capabilities to sorting capabilities
410
452
411
453
### Deprecated
454
+
412
455
-`League\Csv\Reader::setSortBy` replaced by a better implementation
413
456
414
457
### Fixed
458
+
415
459
-`League\Csv\Reader::setOffset` now default to 0;
416
460
-`League\Csv\Reader::setLimit` now default to -1;
417
461
-`detectDelimiter` bug fixes
@@ -423,14 +467,17 @@ to manage BOM character with CSV.
423
467
## 5.1.0 - 2014-03-11
424
468
425
469
### Added
470
+
426
471
-`League\Csv\Reader::each` to ease CSV import data
427
472
-`League\Csv\Reader::addFilter`, `League\Csv\Reader::removeFilter`, `League\Csv\Reader::hasFilter` to improve extract filter capabilities
428
473
-`detectDelimiter` method to `League\Csv\AbstractCsv` to sniff CSV delimiter character.
429
474
430
475
### Deprecated
476
+
431
477
-`League\Csv\Reader::setFilter` replaced by a better implementation
432
478
433
479
### Fixed
480
+
434
481
- Nothing
435
482
436
483
### Removed
@@ -440,12 +487,15 @@ to manage BOM character with CSV.
440
487
## 5.0.0 - 2014-02-28
441
488
442
489
### Added
490
+
443
491
- Change namespace from `Bakame\Csv` to `League\Csv`
444
492
445
493
### Deprecated
494
+
446
495
- Nothing
447
496
448
497
### Fixed
498
+
449
499
- Nothing
450
500
451
501
### Removed
@@ -455,6 +505,7 @@ to manage BOM character with CSV.
455
505
## 4.2.1 - 2014-02-22
456
506
457
507
### Fixed
508
+
458
509
-`$open_mode` validation is done by PHP internals directly
459
510
460
511
### Removed
@@ -464,9 +515,11 @@ to manage BOM character with CSV.
464
515
## 4.2.0 - 2014-02-17
465
516
466
517
### Added
518
+
467
519
-`toXML` method to transcode the CSV into a XML in `Bakame\Csv\AbstractCsv`
468
520
469
521
### Fixed
522
+
470
523
-`toHTML` method bug in `Bakame\Csv\AbstractCsv`
471
524
-`output` method accepts an optional `$filename` argument
472
525
-`Bakame\Csv\Reader::fetchCol` default to `$columnIndex = 0`
@@ -475,20 +528,24 @@ to manage BOM character with CSV.
475
528
## 4.1.2 - 2014-02-14
476
529
477
530
### Added
531
+
478
532
- Move from `PSR-0` to `PSR-4` to autoload the library
479
533
480
534
## 4.1.1 - 2014-02-14
481
535
482
536
### Fixed
537
+
483
538
-`Bakame\Csv\Reader` methods fixed
484
539
-`jsonSerialize` bug fixed
485
540
486
541
## 4.1.0 - 2014-02-07
487
542
488
543
### Added
544
+
489
545
-`getEncoding` and `setEncoding` methods to `Bakame\Csv\AbstractCsv`
490
546
491
547
### Fixed
548
+
492
549
-`Bakame\Csv\Writer::insertOne` takes into account CSV controls
493
550
-`toHTML` method takes into account encoding
494
551
@@ -500,13 +557,16 @@ to manage BOM character with CSV.
500
557
-`Bakame\Csv\Writer` and `Bakame\Csv\Reader` extend `Bakame\Csv\AbstractCsv`
501
558
502
559
### Deprecated
560
+
503
561
- Nothing
504
562
505
563
### Fixed
564
+
506
565
-`Bakame\Csv\Reader::fetchOne` is no longer deprecated
507
566
-`Bakame\Csv\Reader::fetchCol` no longer accepts a third parameter `$strict`
508
567
509
568
### Removed
569
+
510
570
-`Bakame\Csv\Codec` now the library is composer of 2 main classes
511
571
-`Bakame\Csv\Reader::getFile`
512
572
-`Bakame\Csv\Reader::fetchValue`
@@ -515,66 +575,80 @@ to manage BOM character with CSV.
-`Bakame\Csv\Reader::createFromString` to create a CSV object from a raw string
520
581
-`Bakame\Csv\Reader::query` accept an optional `$callable` parameter
521
582
522
583
### Deprecated
584
+
523
585
-`Bakame\Csv\Reader::getFile` in favor of `Bakame\Csv\Reader::getIterator`
524
586
525
587
### Removed
588
+
526
589
-`Bakame\Csv\ReaderInterface` useless interface
527
590
528
591
### Fixed
592
+
529
593
-`Bakame\Csv\Reader::fetch*``$callable` parameter is normalized to accept an array
530
594
-`Bakame\Csv\Reader::fetchCol` accepts a third parameter `$strict`
531
595
532
596
## 3.2.0 - 2014-01-16
533
597
534
598
### Added
599
+
535
600
-`Bakame\Csv\Reader` implements the following interfaces `JsonSerializable` and `ArrayAccess`
536
601
-`Bakame\Csv\Reader::toHTML` to output the CSV as a HTML table
537
602
-`Bakame\Csv\Reader::setFilter`, `Bakame\Csv\Reader::setSortBy`, `Bakame\Csv\Reader::setOffset`, `Bakame\Csv\Reader::setLimit`, `Bakame\Csv\Reader::query` to perform SQL like queries on the CSV content.
538
603
-`Bakame\Csv\Codec::setFlags`, `Bakame\Csv\Codec::getFlags`, Bakame\Csv\Codec::__construct : add an optional `$flags` parameter to enable the use of `SplFileObject` constants flags
539
604
540
605
### Deprecated
606
+
541
607
-`Bakame\Csv\Reader::fetchOne` replaced by `Bakame\Csv\Reader::offsetGet`
542
608
-`Bakame\Csv\Reader::fetchValue` useless method
543
609
544
610
## 3.1.0 - 2014-01-13
545
611
546
612
### Added
613
+
547
614
-`Bakame\Csv\Reader::output` output the CSV data directly in the output buffer
548
615
-`Bakame\Csv\Reader::__toString` can be use to echo the raw CSV
549
616
550
617
## 3.0.1 - 2014-01-10
551
618
552
619
### Fixed
620
+
553
621
-`Bakame\Csv\Reader::fetchAssoc` when users keys and CSV row data don't have the same length
554
622
555
623
## 3.0.0 - 2014-01-10
556
624
557
625
### Added
626
+
558
627
-`Bakame\Csv\ReaderInterface`
559
628
-`Bakame\Csv\Reader` class
560
629
561
630
### Fixed
631
+
562
632
-`Bakame\Csv\Codec::loadString`returns a `Bakame\Csv\Reader` object
563
633
-`Bakame\Csv\Codec::loadFile` returns a `Bakame\Csv\Reader` object
564
634
-`Bakame\Csv\Codec::save` returns a `Bakame\Csv\Reader` object
565
635
566
636
## 2.0.0 - 2014-01-09
567
637
568
638
### Added
639
+
569
640
-`Bakame\Csv\CsvCodec` class renamed `Bakame\Csv\Codec`
Copy file name to clipboardExpand all lines: docs/basic-usage.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ title: Basic Usage
7
7
8
8
<pclass="message-info"><strong>Tips:</strong> Even though you can use the following methods with the <code>League\Csv\Writer</code> object. It is recommended to do so with the <code>League\Csv\Reader</code> class to avoid losing the file cursor position and getting unexpected results when inserting new data.</p>
9
9
10
-
Once your CSV object is [instantiated](/instantiation) and [configured](/properties/), you can start interacting with the data using a number of methods available to you.
10
+
Once your CSV object is [instantiated](/instantiation) and [configured](/properties/), you can start interacting with the data using a number of methods available to you.
0 commit comments