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 Size Byte

Php Size Byte Laravel Package

ixnode/php-size-byte

A lightweight PHP utility for converting human-readable size values like KB, MB, and GB into bytes and formatting byte counts for display. Easy to drop into Laravel or any PHP project for simple file and data size handling.

Deep Wiki
Context7

ixnode/php-size-byte is a lightweight PHP utility for working with byte sizes—parsing human-readable values like "1.5 GB" and converting them into raw bytes, or formatting raw byte counts back into readable strings. It removes the guesswork from unit handling in configs, logs, uploads, and storage limits.

  • Human-readable parsing of values such as 10 MB, 2GiB, or 512 bytes
  • Bidirectional conversion between formatted strings and integer byte counts
  • Unit support for B, KB, MB, GB, TB and their binary equivalents
  • Framework-agnostic with no dependencies beyond PHP
  • Simple API that drops easily into any Laravel or plain PHP project
Frequently asked questions about Php Size Byte
How do I install ixnode/php-size-byte?
Install it with Composer using composer require ixnode/php-size-byte. The package is described as a lightweight, dependency-free PHP utility, so it can be loaded through Composer's autoloader in Laravel or standalone PHP projects. No Laravel-specific installation steps are mentioned in the available overview.
What does ixnode/php-size-byte actually do?
It converts human-readable size strings such as 1 MB or 2.5 GB into raw byte values. It also formats byte values back into readable size strings. The overview positions it as a simple utility for Laravel apps and standalone PHP projects.
Can I use ixnode/php-size-byte in a Laravel application?
Yes. The package overview says it is suited to Laravel apps, and because it is a plain dependency-free PHP utility you can typically use it via Composer autoloading. The available context does not mention a service provider, facade, or Laravel config file, so do not assume those integrations exist without checking the source.
Does ixnode/php-size-byte support decimal values like 2.5 GB?
Yes, 2.5 GB is one of the examples used to describe the package. It is designed to parse human-readable size strings into raw bytes. For exact parsing rules and supported units, check the package README or source because the overview is intentionally brief.
Which size units can I convert with ixnode/php-size-byte?
The package is described with examples like 1 MB and 2.5 GB, and it is intended for human-readable size strings generally. The overview does not provide an exhaustive list of supported units or aliases. Review the README or tests for the exact units, casing rules, and whether KB, MB, and GB are the only options.
Does ixnode/php-size-byte use 1024 or 1000 for KB, MB, and GB?
The available overview does not specify whether conversions use binary multiples of 1024 or decimal multiples of 1000. That distinction matters for storage quotas, upload limits, and billing calculations. Check the package source, tests, or README before relying on the exact byte totals.
How do I format bytes into a readable size with ixnode/php-size-byte?
Formatting bytes back into readable sizes is one of the package's core purposes. The overview does not list exact method names or options such as precision and unit selection. Consult the README or source for the formatter API and any configuration it exposes.
Is ixnode/php-size-byte dependency-free and lightweight?
Yes. The package is described as a lightweight, dependency-free PHP utility. That makes it a reasonable fit when you want size parsing and formatting without pulling in a larger framework component. You still need Composer to install and autoload it in normal PHP or Laravel projects.
Can I use ixnode/php-size-byte outside Laravel?
Yes. The package overview explicitly says it is suited to Laravel apps and standalone PHP projects. It is a plain PHP utility, so you can use it in scripts, CLI tools, or other frameworks via Composer autoloading. No framework runtime is required according to the available description.
What PHP or Laravel versions does ixnode/php-size-byte support?
The provided context does not list PHP or Laravel version constraints for ixnode/php-size-byte. Because it is described as dependency-free, it may work across a broad range, but you should verify the composer.json requirements before adding it to a production Laravel app. Also check the package's release history for compatibility notes.
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