autoframe / components-filesystem
Core File System Utils Autoframe Framework
2.0.4
2023-11-06 09:49 UTC
Requires
- php: >=7.4
- autoframe/components-exception: ^1.0 || ^2.0
- autoframe/components-filemime: ^3.0
- autoframe/design-patterns: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.6 || ^10
README
PHP File System utilities like "Looping", "Traversing", "Versioning", "Encode", "Base64", "Mime", etc
Namespace:
- Autoframe\Component\FileSystem
SINGLETON Classes:
-
AfrFileSystemCollectionClass (contains all the methods from the next classes)
-
AfrDirPathClass
- isDir
- openDir
- detectDirectorySeparatorFromPath
- getApplicableSlashStyle
- removeFinalSlash
- addFinalSlash
- makeUniformSlashStyle
- correctPathFormat
- simplifyAbsolutePath
- fixDs
-
AfrBase64InlineDataClass
- getBase64InlineData
-
AfrOverWriteClass
- overWriteFile
-
AfrDirTraversingCollectionClass (all traversing methods)
-
AfrDirTraversingCountChildrenDirsClass
- countAllChildrenDirs
-
AfrDirTraversingFileListClass
- getDirFileList
-
AfrDirTraversingGetAllChildrenDirsClass
- getAllChildrenDirs
-
AfrDirMaxFileMtimeClass
- getDirMaxFileMtime
-
AfrFileVersioningMtimeHashClass
- fileVersioningMtimeHash
-
AfrSplitMergeClass
- AfrSplitMergeInterface
-
AfrSplitMergeCopyDirClass
- AfrSplitMergeCopyDirInterface
Includes:
- Traits (can be used for embedding into classes if the singleton is not good enough)
- Interfaces