2017 © Pedro Peláez
 

library filesystem

This package helps you to manage your file easily.

image

sun/filesystem

This package helps you to manage your file easily.

  • Tuesday, August 4, 2015
  • by IftekherSunny
  • Repository
  • 1 Watchers
  • 0 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Filesystem

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

Filesystem helps you to manage your file easily., (*2)

Installation Process

Just copy Filesystem folder somewhere into your project directory. Then include filesystem autoloader., (*3)

 require_once('/path/to/Filesystem/autoload.php');

Filesystem is also available via Composer/Packagist., (*4)

 composer require sun/filesystem

All Methods

To create file
$filesystem = new Sun\Filesystem;
$filesystem->create(__DIR__.'/filename.txt', 'content');
To delete file
$filesystem->delete(__DIR__.'/filename.txt');
To update file
$filesystem->update(__DIR__.'/filename.txt', ' more content');
To get file content
$filesystem->get(__DIR__.'/filename.txt');
To append file content
$filesystem->append(__DIR__.'/filename.txt', 'more content');
To copy a file
$filesystem->copy(__DIR__.'/filename.txt', __DIR__.'/filename2.txt' );
To move a file
$filesystem->move(__DIR__.'/filename.txt', __DIR__.'/destination/filename.txt' );
To get filesize
$filesystem->size(__DIR__.'/filename.txt');
To check file exists
$filesystem->exists(__DIR__.'/filename.txt');
To get all files in a directory
$filesystem->files(__DIR__.'/directoryName');
To get all directories in a directory
$filesystem->directories(__DIR__.'/directoryName');
To create a directory
$filesystem->createDirectory(__DIR__.'/directoryName');
To delete a directory
$filesystem->deleteDirectory(__DIR__.'/directoryName');
To clean a directory
$filesystem->cleanDirectory(__DIR__.'/directoryName');

License

This package is licensed under the MIT License, (*5)

The Versions

04/08 2015

dev-master

9999999-dev

This package helps you to manage your file easily.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

filesystem php filesystem fast filesystem file create

04/08 2015

v1.3

1.3.0.0

This package helps you to manage your file easily.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

filesystem php filesystem fast filesystem file create

25/07 2015

v1.2

1.2.0.0

This package helps you to manage your file easily.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

filesystem php filesystem fast filesystem file create

15/07 2015

v1.1

1.1.0.0

This package helps you to manage your file easily.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

filesystem php filesystem fast filesystem file create

13/07 2015

v1.0

1.0.0.0

This package helps you to manage your file easily.

  Sources   Download

MIT

The Requires

  • php >=5.4.0