PHPackages                             unreal4u/file-operations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. unreal4u/file-operations

AbandonedLibrary

unreal4u/file-operations
========================

This class is a collection of functions that deals with files

v0.4.3(7y ago)0351MITPHPPHP &gt;=7.0.0

Since Nov 3Pushed 7y agoCompare

[ Source](https://github.com/unreal4u/fileOperations)[ Packagist](https://packagist.org/packages/unreal4u/file-operations)[ RSS](/packages/unreal4u-file-operations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (8)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/c5f5e1bf8ce767b85c1531b1297938e01e47857467e2bb5104e93fe00f33f1fa/68747470733a2f2f706f7365722e707567782e6f72672f756e7265616c34752f66696c652d6f7065726174696f6e732f762f737461626c652e706e67)](https://packagist.org/packages/unreal4u/file-operations)[![Build Status](https://camo.githubusercontent.com/6955a4a04d85778b67d7cf32daccc2ad6308c1c0176f2b7b0e18d6c13bc97816/68747470733a2f2f7472617669732d63692e6f72672f756e7265616c34752f66696c654f7065726174696f6e732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/unreal4u/fileOperations)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3073ef48d9b44071b3da77d4e0b65ba312727043517933a8e5775eab0e697386/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756e7265616c34752f66696c654f7065726174696f6e732f6261646765732f7175616c6974792d73636f72652e706e673f733d62646139626666646462643361386662376632343738326334326466643464353765613064326438)](https://scrutinizer-ci.com/g/unreal4u/fileOperations/)[![License](https://camo.githubusercontent.com/da428f6c0e9765eaca5cf26dd265e9f9a8e496a0194e6dce132c0745eac9f5e3/68747470733a2f2f706f7365722e707567782e6f72672f756e7265616c34752f66696c652d6f7065726174696f6e732f6c6963656e73652e706e67)](https://packagist.org/packages/unreal4u/file-operations)

unreal4u/file-operations
========================

[](#unreal4ufile-operations)

This class is able to retrieve files based on several parameters and perform configurable and extendable operations on them.

Credits
-------

[](#credits)

This class is made by unreal4u (Camilo Sperberg). [unreal4u.com/](http://unreal4u.com/)

About this class
================

[](#about-this-class)

- This class will allow you to select files and perform operations on them.
- A few examples are included, such as get the contents or delete them
- Endless posibilities: just create your own and extend the abstract fileSelection class
- Needs PHP7+

Disclaimer
==========

[](#disclaimer)

Usage of this class is entirely up to you. Read all documentation before you use this class!

Detailed description
--------------------

[](#detailed-description)

This package is a collection of functions related to file manipulation. The idea behind it is actually pretty simple: with the base class fileSelection you select files, based on several parameters, such as maximum age of the file, or based on a regex selector.

After you have made your selection, you proceed to do the action. That action are actually classes that extend the base class and implement the final action which can be whatever you want. Included are 2 examples: a fileDeleter; which as the name states, is able to delete files (it also has a test mode, I suggest you use that before you put any code on production); and a contentGetter, which reads the file out and puts together an array with data.

Basic usage
-----------

[](#basic-usage)

```
