On 08/02/2025 19:52, Eugene Sidelnyk wrote:
Hi Sam, Tim, Rob
Maybe there could be another good feature to start with - the function
to format bytes into a human-readable format (for debug purpuses) to
have pretty view of the size (like 1.5GB, or 20MB)
Right now every time I need this, I find myself copying the function
from stack overflow, since PHP doesn't have any built-in solution:
https://stackoverflow.com/questions/2510434/format-bytes-to-kilobytes-megabytes-gigabytes
This is too little thing for having separate composer library, and
perhaps having it built-in would be better?
What do you think?
https://github.com/ScriptFUSION/ByteFormatter/