Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
64% | Total: 350 | All time: 6,996 This week: 488 |
Version | License | PHP version | Categories | |||
php-files-manipulati 3.5 | MIT/X Consortium ... | 5.6 | PHP 5, Files and Folders |
Description | Author | |||||||||||||||||||||||
This package can manipulate files and directories in several ways. |
|
file php class pdo
I need manipulate files
This package can manipulate files and directories in several ways.
It can perform several types of operations. Currently it can:
run this command
## usage
<?php
use Lablnet\Files;
require_once "../vendor/autoload.php";
$files = new Files();
//Write on file $files->open('test.txt','writeOnly')->write("I am test files");
// read the file var_dump($files->open('test.txt','readOnly')->read('test.txt'));
//delete the file $files->delete('test.txt');
//Make dir $files->mkDir('name');
//Change premission $files->permission('test.txt',0774);
//Delete files $files->deleteFiles(['test.txt']);
//Copy files $files->copyFiles('/name','dir/',['test.txt']);
//Move files $files->moveFiles('/','dir/',['test.txt']);
//Delete dirs $files->deleteDirs(['test.txt']);
//Copy dirs $files->copyDirs('/','dir/',['test.txt']);
//Move dirs $files->moveDirs('/','dir/',['test.txt']);
//File upload $status = $files->fileUpload($_FILES['file'],'/','image'); var_dump($status);
//Multiple file upload $status = $files->filesUpload($_FILES['file'],'/','image',count($_FILES['file']['name'])); var_dump($status);
Files (7) |
File | Role | Description | ||
---|---|---|---|---|
example (2 files) | ||||
src (1 file) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (7) | / | example |
File | Role | Description |
---|---|---|
index.php | Example | Example script |
index2.php | Example | Example script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
php-files-manipulati-2018-12-04.zip 6KB | |
php-files-manipulati-2018-12-04.tar.gz 4KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.