PHPackages                             hotarunohikari/dr-file - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. hotarunohikari/dr-file

ActiveComposer[File &amp; Storage](/categories/file-storage)

hotarunohikari/dr-file
======================

file helper

1.0.1(6y ago)0311MITPHPPHP &gt;=7.0.0

Since Apr 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hotarunohikari/dr-file)[ Packagist](https://packagist.org/packages/hotarunohikari/dr-file)[ RSS](/packages/hotarunohikari-dr-file/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

### dr-file

[](#dr-file)

```
/**
 * 前缀修正
 * @param $path 路径名称
 * @param bool $hasSlash 是否带前缀斜杠,默认否
 * @return false|string
 * hotarunohikari
 */
static function drFixPrefix($path, $hasSlash = false)

/**
 * 尾缀修正
 * @param $path 路径名称
 * @param bool $hasSlash 是否带前缀斜杠,默认是
 * @return false|string
 * hotarunohikari
 */
static function drFixSuffix($path, $hasSlash = true)

/**
 * 修正文件路径名称
 * @param $path 路径名称
 * @param bool $hasSlash 是否带前后缀斜杠,默认是
 * @return false|string
 * hotarunohikari
 */
static function drFixDirName($path, $hasSlash = true)

/**
 * 根据日期创建目录,多用于文件上传存储
 * @param $dir 路径名称
 * @return false|string 如: 路径/年/月-日/
 * hotarunohikari
 */
static function drMkdirByDate($dir)

/**
 * 生成一个不可能重复的名字
 * @param $prefix 前缀
 * @return string
 * hotarunohikari
 */
static function drMakeName($prefix = 'dr')

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

2

Last Release

2226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47f6cfe87caf5c95a781c6518d6d9dcb49e5e1999792ea7d66799f4f81410517?d=identicon)[hotarunohikari](/maintainers/hotarunohikari)

---

Top Contributors

[![hotarunohikari](https://avatars.githubusercontent.com/u/59673213?v=4)](https://github.com/hotarunohikari "hotarunohikari (4 commits)")[![CorderWei](https://avatars.githubusercontent.com/u/7877655?v=4)](https://github.com/CorderWei "CorderWei (2 commits)")

### Embed Badge

![Health badge](/badges/hotarunohikari-dr-file/health.svg)

```
[![Health](https://phpackages.com/badges/hotarunohikari-dr-file/health.svg)](https://phpackages.com/packages/hotarunohikari-dr-file)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
