PHPackages                             ice-php/write - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ice-php/write

ActiveComposer[Utility &amp; Helpers](/categories/utility)

ice-php/write
=============

处理Linux下的写权限及用户问题

070[1 issues](https://github.com/ice-php/write/issues)[1 PRs](https://github.com/ice-php/write/pulls)PHP

Since Oct 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/ice-php/write)[ Packagist](https://packagist.org/packages/ice-php/write)[ RSS](/packages/ice-php-write/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

处理Linux下的写权限和用户问题
=================

[](#处理linux下的写权限和用户问题)

- 写文件

    write(string $file, $content, int $flag = 0)

    对file\_put\_contents的封装,以修正文件所有者
- 创建目录

    makeDir(string $path): void

    可以越级创建目录

#### 写入失败时会触发错误，而不是异常

[](#写入失败时会触发错误而不是异常)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/148289317?v=4)[icePHP](/maintainers/icePHP)[@IcePHP](https://github.com/IcePHP)

---

Top Contributors

[![ice-php](https://avatars.githubusercontent.com/u/23303429?v=4)](https://github.com/ice-php "ice-php (8 commits)")[![vYaoXuan](https://avatars.githubusercontent.com/u/10300364?v=4)](https://github.com/vYaoXuan "vYaoXuan (2 commits)")

### Embed Badge

![Health badge](/badges/ice-php-write/health.svg)

```
[![Health](https://phpackages.com/badges/ice-php-write/health.svg)](https://phpackages.com/packages/ice-php-write)
```

PHPackages © 2026

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