maestroerror/file-manager

Easy to use, chainable PHP fileManager class with all main features

0.3.4 2023-10-27 08:32 UTC

This package is auto-updated.

Last update: 2024-12-16 16:22:51 UTC


README

Easy to use, chainable PHP fileManager class with UNIX-like methods

Refactoring plan, structure and features:

  • Keeps state of file explorer in object
  • Hooks file's read/write/delete by file extension
  • Folders as property and via method:
    • $fileManager->testFolder->open();
    • $fileManager->open("Test folder");
  • Main objects: Directory & File
    • Directory:
      • Name +
      • Path +
      • Files +
      • Directories +
      • Tree +
      • Size +
      • Date +
    • File:
      • Name +
      • Path +
      • Content +
      • Size +
      • Date +
  • Entry Class: FileManager
    • Current directory
    • Folders array (For Safe property access) as trait for this and Directory class
    • Main actions (API)

To Do

Needs Release

  • Solve todo comments
  • Add description comments for each method
  • Seo, Examples and Documentation
  • Add tests for main methods