Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jhorlima/downloadfile
- Owner: jhorlima
- License: mit
- Created: 2015-08-03T13:02:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T16:56:39.000Z (about 9 years ago)
- Last Synced: 2023-02-28T17:16:29.018Z (over 1 year ago)
- Language: PHP
- Size: 138 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DownloadFile
Class to help download files with try catchMethods:
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!