matraux/filesystem 问题修复 & 功能扩展

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

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

matraux/filesystem

Composer 安装命令:

composer require matraux/filesystem

包简介

A PHP 8.4+ library for object-oriented file and folder manipulation with support for PSR-7 and Nette\Http\FileUpload.

README 文档

README

Latest Version on Packagist License: MIT PHP Security Policy Contributing QA Status Issues Last Commit


Introduction

A PHP 8.4+ library that simplifies file and folder operations using an object-oriented API. Supports renaming, moving, streaming, and deletion with optional integration for PSR-7 and Nette\Http\FileUpload.


Features

  • File and folder manipulation with fluent API
  • Relative and absolute path resolution
  • File iteration via chunks (stream-style)
  • Automatic cleanup of temporary files
  • PSR-7 stream support Psr\Http\Message\StreamInterface
  • Nette FileUpload support Nette\Http\FileUpload
  • Easy extension via inheritance

Installation

composer require matraux/filesystem

PHP compatibility

This package provides separate major versions for different PHP baselines.

Version PHP
1.x 7.4+
2.x 8.3+
3.x 8.4+

Examples

See File for advanced instructions.

use Matraux\FileSystem\File\File;

$file = File::fromPath('C:\Users\MATRAUX\Webs\Resources\FileSystem\log.txt');
echo $file->name;  // "log.txt"

See Folder for advanced instructions.

use Matraux\FileSystem\Folder\Folder;

$folder = Folder::fromPath()->addPath('backup');
echo $folder->absolute; // "C:\Users\MATRAUX\Webs\Resources\FileSystem\backup"

Development

See Development for debug, test instructions, static analysis, and coding standards.


Support

For bug reports and feature requests, please use the issue tracker.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固