Download the PHP package eden/folder without Composer
On this page you can find all versions of the php package eden/folder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package folder
Eden Folder
- Install
- Introduction
- API
- create
- getFiles
- getFolders
- getName
- isFolder
- remove
- removeFiles
- removeFolders
- truncate
- Contributing
====
Install
composer install eden/folder
====
Introduction
Instantiate folder in this manner.
====
API
====
create
Creates a folder given the path
Usage
Parameters
int $chmod- the UNIX permissions level
Returns Eden\Folder\Index
Example
====
getFiles
Returns a list of files given the path and optionally the pattern
Usage
Parameters
string|null $regex- Regular expression to match files againstbool $recursive- To recursively look in folders
Returns array
Example
====
getFolders
Returns a list of folders given the path and optionally the regular expression
Usage
Parameters
string|null $regex- Regular expression to match folders againstbool $recursive- To recursively look in folders
Returns array
Example
====
getName
Returns the name of the directory.. just the name
Usage
Parameters
Returns string - the name
====
isFolder
Checks to see if this path is a real file
Usage
Parameters
string|null $path- the path to test against
Returns bool
Example
====
remove
Removes a folder given the path
Usage
Parameters
Returns Eden\Folder\Index
====
removeFiles
Removes files given the path and optionally a regular expression
Usage
Parameters
string|null regular- expression
Returns Eden\Folder\Index
Example
====
removeFolders
Removes a folder given the path and optionally the regular expression
Usage
Parameters
string $regex- Regular expression to test against
Returns Eden\Folder\Index
Example
====
truncate
Removes files and folder given a path
Usage
Parameters
Returns Eden\Folder\Index
====
Contributing to Eden
Contributions to Eden are following the Github work flow. Please read up before contributing.
Setting up your machine with the Eden repository and your fork
- Fork the repository
- Fire up your local terminal create a new branch from the
v4branch of your fork with a branch name describing what your changes are. Possible branch name types:- bugfix
- feature
- improvement
- Make your changes. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")
Making pull requests
- Please ensure to run
phpunitbefore making a pull request. - Push your code to your remote forked version.
- Go back to your forked version on GitHub and submit a pull request.
- An Eden developer will review your code and merge it in when it has been classified as suitable.
All versions of folder with dependencies
eden/core Version 4.*
eden/string Version 4.*
eden/array Version 4.*
eden/path Version 4.*
eden/file Version 4.*