PHPackages                             nancheng/pfinal-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. nancheng/pfinal-file

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

nancheng/pfinal-file
====================

This is a package for the PHP file operation class

07PHP

Since Dec 21Pushed 8y agoCompare

[ Source](https://github.com/pfinalclub/pfinal-file)[ Packagist](https://packagist.org/packages/nancheng/pfinal-file)[ RSS](/packages/nancheng-pfinal-file/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

pfinal-file
===========

[](#pfinal-file)

[![](https://camo.githubusercontent.com/2a09bd237643d62ac044b1e554f3153bcdc48c1a476ccdfcba9713539f286fd1/68747470733a2f2f696d672e736869656c64732e696f2f61706d2f6c2f76696d2d6d6f64652e737667)](https://camo.githubusercontent.com/2a09bd237643d62ac044b1e554f3153bcdc48c1a476ccdfcba9713539f286fd1/68747470733a2f2f696d672e736869656c64732e696f2f61706d2f6c2f76696d2d6d6f64652e737667)[![](https://camo.githubusercontent.com/d04fc464bd220fc5c06779b0ad069d6c87b9d7d6ccd16c83d358aadee83909f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f776e6c6f6164732d346b2d7265642e737667)](https://packagist.org/packages/nancheng/pfinal-array)

**Note:** `PHP` `PHPfile` `Validator` `file`

这是一个PHP操作文件的简单操作类

安装
--

[](#安装)

通过 Composer 安装：

```
php composer.phar require nancheng/pfinal-file

```

---

使用
--

[](#使用)

```
require_once './vendor/autoload.php';
use pf\file\build\File;

//读取文件
$res = File::read('./text.txt');

//写入文件
$res1 = File::put('./text.txt','aaaaaaaaa');
```

例子
--

[](#例子)

```
