Word wrap text and ignore ANSI escape codes when counting line length – PHP Versions
I'm building a CLI app in PHP that has a method to output text: $out->line('Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Nullam id dolor id nibh ultricies vehicula ut id elit.…