loophp / collection

A (memory) friendly, easy, lazy and modular collection class.
https://loophp-collection.rtfd.io/
MIT License
723 stars 35 forks source link

feat: update `Collection::fromFile` constructor #322

Closed drupol closed 1 year ago

drupol commented 1 year ago

I saw a presentation made by a French company: https://speakerdeck.com/goathier/collection

In their slides, I had the feeling that parsing a CSV file was too complicated, so I had the idea to implement the feature in loophp/collection. But to do that, I had to update loophp/iterators first, see the relevant commit.

This PR:

alexandre-daubois commented 1 year ago

Gauthier told me you created this PR, that's a big yes to me! This will definitely improve the DX when dealing with files. We'll definitely use this feature in production as soon as it is available 🚀