Download the PHP package ali-eltaweel/files without Composer
On this page you can find all versions of the php package ali-eltaweel/files. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package files
Files
File Managment in PHP
- Files
- Installation
- Usage
- Creating Files Objects
- Available File Types
- File Properties
- RegularFile Properties
- Link Properties
- File Methods
- RegularFile Methods
- Directory Methods
- Link Methods
Installation
Install files via Composer:
Usage
Creating Files Objects
Instances of the File
abstract class can be created using the File::make()
which looks for the file type and returns the appropriate class instance, or by directly instantiating a concrete File
class.
Available File Types
- Fifo
- CharacterDevice
- Directory
- RegularFile
- Symlink
File Properties
Property | Type | Get | Set |
---|---|---|---|
path | string | ✅ | ❌ |
uid | string | integer | ✅ | ✅ |
gid | string | integer | ✅ | ✅ |
permissions | integer | ✅ | ✅ |
mode | integer | ✅ | ✅ |
atime | integer | ✅ | ✅ |
ctime | integer | ✅ | ❌ |
mtime | integer | ✅ | ✅ |
inode | integer | ✅ | ❌ |
size | integer | ✅ | ❌ |
type | FileType | ✅ | ❌ |
stat | Stat | ✅ | ❌ |
RegularFile Properties
Property | Type | Get | Set |
---|---|---|---|
content | string | ✅ | ✅ |
Link Properties
Property | Type | Get | Set |
---|---|---|---|
targetGid | string | integer | ✅ | ✅ |
targetUid | string | integer | ✅ | ✅ |
target | ?File | ✅ | ❌ |
finalTarget | ?File | ✅ | ❌ |
File Methods
-
copy
-
link
-
symlink
-
rename
-
touch
-
remove
- open
RegularFile Methods
-
transaction
-
setContent
- getContent
Directory Methods
-
mkdir
-
remove
- foreachChild
Link Methods
-
chgrpTarget
-
chownTarget
-
readlink
- readlinkRecursively
All versions of files with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ali-eltaweel/computed-properties Version ^1.0.1
ali-eltaweel/virtual-props Version ^1.0.0
ali-eltaweel/lazy-props Version ^1.0.0
ali-eltaweel/codecs Version ^1.0.0
ali-eltaweel/computed-properties Version ^1.0.1
ali-eltaweel/virtual-props Version ^1.0.0
ali-eltaweel/lazy-props Version ^1.0.0
ali-eltaweel/codecs Version ^1.0.0
The package ali-eltaweel/files contains the following files
Loading the files please wait ....