autoframe/components-filesystem

Core File System Utils Autoframe Framework

2.0.4 2023-11-06 09:49 UTC

This package is auto-updated.

Last update: 2024-11-06 12:22:41 UTC


README

Build Status License: MIT Packagist Version Downloads

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