Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jhorlima/downloadfile

Class to help download files with try catch
https://github.com/jhorlima/downloadfile

Last synced: 29 days ago
JSON representation

Class to help download files with try catch

Awesome Lists containing this project

README

        

# DownloadFile
Class to help download files with try catch

Methods:

getFileInfo = @return SplFileInfo object

setFile = @param $filePatch, @return this object

setNewName = @param $newName, [@param $haveExtension = true ( default ) - false to add extension of the original file], [@param $extension = null ( default ) - string to new extension, this parameter ignores the parameter $haveExtension ], @return this object

setValidatorExtension = @param validExtensionslist, @return this object (optional)

download = @return file to download.

index.php is an example!