Ignace Nyamagana Butera

@nyamsprod.com

Software developer. Creator of PHP centric package like league/csv, league/uri and bakame/http-structured-fields. Sponsor me at http://github.com/sponsors/nyamsprod

🎉 tokei 0.2.0 — codename Botan is out! New features, bug fixes, BC breaks, and official docs: bakame-php.github.io/tokei/ Tokei is a small #PHP package for working with local time, durations, and intervals. Try it, share feedback, and leave a ⭐ if you find it useful: github.com/bakame-php/t...

Tokei. Duration, Local time and interval primitives without timezone complexity - Tokei

A framework-agnostic PHP library to handle duration, time, circular 24-hour intervals, and interval sets, without timezone complexity.

bakame-php.github.io

#PHP streams have a built-in notification system. Set a callback in the stream context. Get called on CONNECT, MIME_TYPE, FILE_SIZE, PROGRESS, COMPLETED. Download progress bars. In pure PHP. No curl_setopt. No ReactPHP. This callback has existed since PHP 5.2!

Bild

#PHP has a built-in stream filter that converts character encoding on the fly. convert.iconv.FROM/TO. Attach it to any stream. Data is re-encoded as it flows through. Read a Shift_JIS file as UTF-8. No iconv() call. No mb_convert. Just fopen + filter.

Bild

Periodic reminder: stop using boolean as options flags in #PHP use Enum instead. Boolean flags are hard to read and to remember and lead to tricky bugs and requiring a trip to the method/function definition, Enum are explicit and readable and offer granularity instead of a simple yes/no answer

github.com/bakame-php/a... is almost stable if you could give a spin an report issues or improvement it would be nice. It is a nice non brainer straightforward profiler in PHP which seats between Xdebug and you double call to microtime 😂 Give it a shot. #PHP #profiler #OSS

GitHub - bakame-php/aide-profiler: A minimalist multi-metric PHP Profiler

A minimalist multi-metric PHP Profiler. Contribute to bakame-php/aide-profiler development by creating an account on GitHub.

github.com