承接 cakephp/filesystem 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

cakephp/filesystem

最新稳定版本:4.6.3

Composer 安装命令:

composer require cakephp/filesystem

包简介

CakePHP filesystem convenience classes to help you work with files and folders.

README 文档

README

Total Downloads License

This package has been deprecated.

CakePHP Filesystem Library

The Folder and File utilities are convenience classes to help you read from and write/append to files; list files within a folder and other common directory related tasks.

Basic Usage

Create a folder instance and search for all the .php files within it:

use Cake\Filesystem\Folder; $dir = new Folder('/path/to/folder'); $files = $dir->find('.*\.php');

Now you can loop through the files and read from or write/append to the contents or simply delete the file:

foreach ($files as $file) { $file = new File($dir->pwd() . DIRECTORY_SEPARATOR . $file); $contents = $file->read(); // $file->write('I am overwriting the contents of this file'); // $file->append('I am adding to the bottom of this file.'); // $file->delete(); // I am deleting this file $file->close(); // Be sure to close the file when you're done }

Documentation

Please make sure you check the official documentation

统计信息

  • 总下载量: 176.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 21
  • 点击次数: 0
  • 依赖项目数: 13
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 26
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固