Download the PHP package eden/file without Composer
On this page you can find all versions of the php package eden/file. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package file
Eden File
- Install
- Introduction
- API
- isFile
- getBase
- getContent
- getData
- getExtension
- getFolder
- getMime
- getName
- getSize
- getTime
- setContent
- setData
- remove
- touch
- Contributing
====
Install
composer install eden/file
====
Introduction
Instantiate file in this manner.
====
API
====
isFile
Checks to see if this path is a real file
Usage
Parameters
Returns bool
====
getBase
Returns the base file name with out the extension
Usage
Parameters
Returns string
====
getContent
Returns the contents of a file given the path
Usage
Parameters
Returns string
====
getData
Returns the executes the specified file and returns the final value
Usage
Parameters
Returns bool
====
getExtension
Returns the base file name extension
Usage
Parameters
Returns string|null
====
getFolder
Returns the file path
Usage
Parameters
Returns string
====
getMime
Returns the mime type of a file
Usage
Parameters
Returns string
====
getName
Returns the file name
Usage
Parameters
Returns string
====
getSize
Returns the size of a file in bytes
Usage
Parameters
Returns string
====
getTime
Returns the last time file was modified in UNIX time
Usage
Parameters
Returns int
====
setContent
Creates a file and puts specified content into that file
Usage
Parameters
*string $content
- The raw content to save
Returns Eden\File\Index
Example
====
setData
Creates a php file and puts specified variable into that file
Usage
Parameters
*mixed $variable
- Whatever data to save
Returns Eden\File\Index
Example
====
remove
Removes a file
Usage
Parameters
Returns Eden\File\Index
====
touch
Touches a file (effectively creates the file if it doesn't exist and updates the date if it does)
Usage
Parameters
Returns Eden\File\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
v4
branch 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
phpunit
before 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 file with dependencies
eden/core Version 4.*
eden/string Version 4.*
eden/array Version 4.*
eden/path Version 4.*