Skip to content

jhorlima/DownloadFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Class to help download files with try catch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages