Skip to content

Releases: glowyphp/filesystem

5.0.1

14 Sep 10:07
Compare
Choose a tag to compare
  • Fix issue with method get for files.

5.0.0

03 Jul 15:30
Compare
Choose a tag to compare
  • All Helpers functions are placed into the Glowy/Filesystem namespace.
  • Use union types.

4.0.0

02 Jul 20:47
Compare
Choose a tag to compare
  • Moving to PHP 8.1

3.2.0

06 Jun 04:31
Compare
Choose a tag to compare
  • Added new method isEmpty for files.
  • Added new method isEmpty for directories.

3.1.0

03 Jun 08:01
Compare
Choose a tag to compare
  • Added new method directories.
  • Added new method files.

3.0.0

23 Dec 19:17
Compare
Choose a tag to compare
  • Released under Glowy PHP Organization
  • Add PHP 8.1 support
  • Updated dependencies.

2.2.0

28 Sep 16:45
Compare
Choose a tag to compare
  • add replace method for File.
  • add sharedGet method for File.
  • add ability to get method for File.

2.1.0

06 Aug 10:07
Compare
Choose a tag to compare
  • add ensureExists method for Directory.

2.0.0

19 Feb 15:41
Compare
Choose a tag to compare
  • Move to PHP 7.4
  • Fix tests
  • Code refactoring

v1.1.0

05 Dec 12:59
Compare
Choose a tag to compare
  • add ability to extend Filesystem class with Macros.

    use Atomastic\Filesystem\Filesystem;
    use Atomastic\Macroable\Macroable;
    
    Filesystem::macro('countFiles', function($path) {
        return count(iterator_to_array($this->find()->in($path)->files(), false));
    });
    
    $filesytem = new Filesystem();
    
    echo $filesytem->countFiles('/directory');
  • improve tests for directory create() method.