mestresdophp / filemanager
这是一个负责管理文件夹、文件和目录的方法集合。目前是此应用的第一个版本。
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-09-27 05:47:59 UTC
README
使用PHP 7开发的文件管理器 - 这是一个负责管理文件夹、文件和目录的方法集合。目前是此应用的第一个版本。
文件管理器使用PHP 7开发 - 它是一组用于管理文件夹、文件和目录的方法。我们处于此应用的第一个版本。
安装(Installation)
FileManager可通过composer获取
FileManager is available via Composer
"mestresdophp/filemanager": "1.0.*"
或者运行
composer require mestresdophp/filemanager
文档(Documentation)
为了更详细地了解如何使用此应用,我们创建了一个名为sample.php的文件,其中包含了所有调用方法的方式以及它们必须使用的参数。
For more details on how to use the application, we created a file called sample.php that contains all the ways to call the methods, as well as their parameters that must be used.
示例1:调用创建文件方法
Example 1: File Creation Method Call
$Files = new Controller\Files();
$Files->CreateFile("Documents/Reads/", "read1.txt", "teste3");
参数 ("文件夹路径", "文件名", "要写入文件的内容");
Parameters ("Path to the folder", "File name", "Content that will be written in the file");
示例2:调用上传单个文件方法
Example 2: Single File Upload Method Call
$Upload = new Controller\Upload();
$Upload->UploadFile('Uploads', 'attach');
参数: ('文件夹名称', 'input files的Name属性');
Parameters: ('Folder Name ', 'the Name attribute of the input files');
注意:将上传调用放在以下语句中是很重要的,以避免在未提交表单的情况下执行方法
Note: It is important to place the Upload call within the statement below to prevent the method from being executed without submitting the form
if(isset($_POST['send'])) {
$Upload->UploadFile('Uploads', 'attach');
}
支持(Support)
如果您遇到任何安全问题、错误、bug或其他可能影响功能的问题,请通过电子邮件发送给我们 contato@mestresdophp.com.br。
If you find any security problem, error, bug or anything else that compromises the operation, please send us an email to contato@mestresdophp.com.br .
致谢(Credits)
Jeferson Souza(开发者)
Mestres do PHP 训练(团队)
许可(License)
MIT许可(MIT)。有关更多信息,请访问许可文件:点击此处
MIT License (MIT). For more information access license file: click here