davidvandertuijn/filesize 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

davidvandertuijn/filesize

最新稳定版本:1.1

Composer 安装命令:

composer require davidvandertuijn/filesize

包简介

Filesize To Human Friendly

README 文档

README

Total Downloads Latest Stable Version License

Filesize

The Filesize tool allows users to determine the size of files in a variety of formats, providing crucial information for data management and analysis. Understanding file sizes is essential for effective storage planning, data transfer, and resource allocation.

"Buy Me A Coffee"

Install

composer require davidvandertuijn/filesize

Usage

use Davidvandertuijn\Filesize;
Filesize::toHumanFriendly(
    1024000, // Bytes
    'kB', // Force Unit
    '%01.2f %s', // Format
    'SI' // Standard
);

SI standard (1000 bytes in a kilobyte)

Filesize::toHumanFriendly(1024000); // 1.02 MB

Force Unit

Filesize::toHumanFriendly(1024000, 'kB'); // 1024.00 kB

Format

Filesize::toHumanFriendly(1024000, null, '%01.3f %s'); // 1.024 MB

IEC standard (1024 bytes in a kibibyte)

Filesize::toHumanFriendly(1048576, null, null, 'IEC'); // 1.00 MiB

统计信息

  • 总下载量: 851
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固