Download the PHP package chillerlan/php-filereader without Composer
On this page you can find all versions of the php package chillerlan/php-filereader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chillerlan/php-filereader
More information about chillerlan/php-filereader
Files in chillerlan/php-filereader
Download chillerlan/php-filereader
More information about chillerlan/php-filereader
Files in chillerlan/php-filereader
Vendor chillerlan
Package php-filereader
Short Description A simple filereader. PHP 7.2+
License MIT
Homepage https://github.com/chillerlan/php-filereader
Package php-filereader
Short Description A simple filereader. PHP 7.2+
License MIT
Homepage https://github.com/chillerlan/php-filereader
Please rate this library. Is it a good library?
Informations about the package php-filereader
chillerlan/php-filereader
A simple file/directory reader for all (well, most... ok. some.) of your file-reading needs.
Requirements
- PHP 7.2+
Documentation
Installation
requires composer
composer.json
(note: replace dev-master
with a version boundary)
Manual installation
Download the desired version of the package from master or release and extract the contents to your project folder. After that:
- run
composer install
to install the required dependencies and generate/vendor/autoload.php
. - if you use a custom autoloader, point the namespace
chillerlan\Filereader
to the foldersrc
of the package
Profit!
Usage
simple
You can just invoke one a FSDriverInterface
and use it right away:
advanced
API
FSDriverInterface
methods
method | return |
---|---|
fileExists(string $path) |
bool |
isFile(string $path) |
bool |
fileContents(string $path) |
string |
getRequire(string $path) |
mixed |
deleteFile(string $path) |
bool |
copyFile(string $source, string $destination, bool $overwrite = true) |
bool |
isDir(string $path) |
bool |
makeDir(string $path) |
bool |
deleteDir(string $path) |
bool |
rename(string $oldname, string $newname, bool $overwrite = true) |
bool |
Directory
public methods
method | return |
---|---|
__construct(FSDriverInterface $driver, string $path) |
- |
change(string $path) |
Directory |
read() |
array of File objects |
create(string $subdir = null) |
bool |
delete(string $subdir = null) |
bool |
rename(string $newname, bool $overwrite = true) |
Directory |
File
public methods
method | return |
---|---|
__construct(FSDriverInterface $driver, Directory $directory, string $name) |
- |
exists() |
bool |
content() |
string |
getRequire() |
mixed |
copy(string $destination, bool $overwrite = true) |
bool |
rename(string $newname, bool $overwrite = true) |
File |
delete() |
bool |
common magic properties of Directory
and File
property | type | description |
---|---|---|
$path |
string | the full path to the resource |
additional magic properties of File
property | type | description |
---|---|---|
$name |
string | the basename of the file |
$directory |
Directory |
the Directory which contains the file |
All versions of php-filereader with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
The package chillerlan/php-filereader contains the following files
Loading the files please wait ....