nurmuhammet / php-file
Simple file manipulator
1.0.0
2023-01-15 13:23 UTC
This package is auto-updated.
Last update: 2025-04-15 18:18:30 UTC
README
Motivation?
This is one of my first reusable codes when I was in high school working on PHP. There is a small chance that this package can help someone along the way.
Examples
require __DIR__ . '/vendor/autoload.php'; use Nurmuhammet\File; # Available methods, see example.php for examples. File::exists('/path/to/file'); File::size('/path/to/file'); File::name('/path/to/file'); File::extension('/path/to/file'); File::delete('/path/to/file'); File::lastUpdated('/path/to/file'); File::get('/path/to/file'); File::put('/path/to/file', 'Content'); File::append('/path/to/file', 'Content'); File::truncate('/path/to/file'); File::copy('/path/to/file', '/path'); File::move('/path/to/file', '/path'); File::rename('/path/to/file', 'name'); File::download('/path/to/file', 'dir'); File::upload('/path/to/file', 'dir');