Download the PHP package fyre/filesystem without Composer
On this page you can find all versions of the php package fyre/filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filesystem
FyreFileSystem
FyreFileSystem is a free, open-source file/folder library for PHP.
Table Of Contents
- Installation
- Files
- Folders
Installation
Using Composer
In PHP:
Files
$path
is a string representing the file path.$create
is a boolean indicating whether to create the file if it doesn't exist, and will default to false.
Access Time
Get the file access time.
Base Name
Get the filename.
Chmod
Change the file permissions.
$permissions
is a number representing the file permissions.
Close
Close the file handle.
Contents
Get the contents of the file.
Copy
Copy the file to a new destination.
$destination
is a string representing the destination path.$overwrite
is a boolean indicating whether to overwrite an existing file, and will default to true.
Create
Create the file.
Csv
Parse CSV values from a file.
$length
is a number representing the maximum line length, and will default to 0.$separator
is a string representing the field separator, and will default to ",".$enclosure
is a string representing the field enclosure character, and will default to """.$escape
is a string representing the escape character, and will default to "\".
Delete
Delete the file.
Dir Name
Get the directory name.
Ended
Determine whether the pointer is at the end of the file.
Exists
Determine whether the file exists.
Extension
Get the file extension.
File Name
Get the filename (without extension).
Folder
Get the Folder.
Group
Get the file group.
Is Executable
Determine whether the file is executable.
Is Readable
Determine whether the file is readable.
Is Writable
Determine whether the file is writable.
Lock
Lock the file handle.
$operation
is a number representing the lock operation, and will default to LOCK_SH.
MIME Type
Get the MIME content type.
Modified Time
Get the file modified time.
Open
Open a file handle.
$mode
is a string representing the access mode, and will default to "r".
Owner
Get the file owner.
Path
Get the full path to the file.
Permissions
Get the file permissions.
Read
Read file data.
$length
is a number representing the number of bytes to read.
Rewind
Rewind the pointer position.
Seek
Move the pointer position.
$offset
is a number representing the pointer position.
Size
Get the size of the file (in bytes).
Tell
Get the current pointer position.
Touch
Touch the file.
$time
is a number representing the modified timestamp, and will default totime()
.$accessTime
is a number representing the access timestamp, and will default to$time
.
Truncate
Truncate the file.
$size
is a number representing the size to truncate to, and will default to 0.
Unlock
Unlock the file handle.
Write
Write data to the file.
$data
is a string representing the data to write.
Folders
$path
is a string representing the folder path.$create
is a boolean indicating whether to create the folder if it doesn't exist, and will default to false.$permissions
is a number representing the permissions to create the folder with, and will default to 0755.
Contents
Get the contents of the folder.
This method will return an array containing the contents of the folder, as File and Folder objects.
Copy
Copy the folder to a new destination.
$destination
is a string representing the destination path.$overwrite
is a boolean indicating whether to overwrite existing files, and will default to true.
Create
Create the folder.
$permissions
is a number representing the permissions to create the folder with, and will default to 0755.
Delete
Delete the folder (including all contents).
Empty
Empty the folder.
Exists
Determine whether the folder exists.
Is Empty
Determine whether the folder is empty.
Move
Move the folder to a new destination.
$destination
is a string representing the destination path.$overwrite
is a boolean indicating whether to overwrite existing files, and will default to true.
Name
Get the folder name.
Path
Get the full path to the folder.
Size
Get the size of the folder (in bytes).