承接 infosophie/file 相关项目开发

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

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

infosophie/file

Composer 安装命令:

composer require infosophie/file

包简介

PHP Librar for working with files

README 文档

README

File is still under development. It is a PHP library for working with files.

Currently, there is only one class (Upload), which is used to upload files.

Installation

Composer

composer require infosophie/file

In composer.json:

    "require": {
        "infosophie/require": "^0.2"
    }

Usage

Upload

An object of the Upload class represents a file to be uploaded. The object can generate the upload form, read the file from the request, and display its contents or save it to the file system.

To use the class in a composer project just "use" the classes like

use Infosophie\File\Upload;

If you manually installed Infosophie/File you first have to require the file holding the class:

include "path/to/infosophie_file/Upload.php";

use Infosophie\File\Upload;

Later in your script you create a new Object:

$upload = new Upload('my_upload_file', ['text/plain'], ['txt']);

call the provided functions, e.g. print the form for the user to upload the file

echo $upload->htmlForm();

or get the content of the file uploaded with that form:

$content = $upload->getContent();

more to come...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固