Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Php Filesize

Php Filesize Laravel Package

chrisullyott/php-filesize

A small, Composer-installable PHP library for converting byte counts into readable file sizes like 1.5 MB and back again. It provides straightforward formatting with configurable precision and units, useful for dashboards, uploads, and CLI output.

Deep Wiki
Context7

php-filesize is a lightweight PHP utility for converting raw byte counts into human-readable file sizes. Instead of scattering rounding and unit logic across your codebase, you get a single, predictable helper that turns integers like 1234567 into clean strings such as 1.18 MB.

It has no dependencies and works anywhere PHP does, making it a natural fit for dashboards, file managers, upload limits, and log output.

  • Converts bytes to KB, MB, GB and beyond
  • Simple static API with sensible defaults
  • Configurable precision and decimal formatting
  • Framework-agnostic, zero dependencies
  • Composer-installable and easy to test
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console