jstewmc/chunker
Multi-byte safe chunked reading for huge files or strings in PHP. Avoids breaking UTF-8 characters by adjusting chunk boundaries so each chunk is valid text, reducing memory use while processing streams sequentially.
next() at the end of the input multiple times does not change the current chunk or update the internal index).Version 0.2.0 includes a number of breaking changes, intended to make the library easier to use and maintain.
setIndex() method. It's better if you can't change a low-level component.getName() and getText() methods. You already have that information and probably don't need the library to echo it back.$text and $name constructor arguments are now required for Text and File chunkers, respectively. You shouldn't be able to instantiate a chunker without either.$size argument to chunker constructors (i.e., removed setSize() and setEncoding() methods; added $size argument). Once a chunker has started chunking, changing the encoding or chunk size will break it. It seemed like a good idea to help prevent you from accidentally making a mistake.File tests from using concrete files and folders to using a virtual file system with bovigo/vfsStream.ext-mbstring requirement to composer.json.The initial release.
How can I help you explore Laravel packages today?