Closed roblambell closed 10 years ago
My pleasure. I think a comprehensive list would be much better, skyzyx/mimetypes looks excellent. Do you have a preference with regards how this is implemented: requiring a class, including a JSON document (stdicon.com/mimetypes is handy too), directly incorporating code?
Hm, I think this might be a good time to finally add composer support for this small lib. We could then just add it as a dependency, so that it is automatically included and one could use the class directly.
(although this would raise the minimum requirement of this class to PHP5.3, but this shouldn't be an issue, since PHP 5.2 is deprecated for a long time now).
I will add composer support, if you want you can resend your $forceDownload
-PR (to be included in contributor fame ;-D ), otherwise I would just add it myself afterwards.
Thanks for your contribution! What do you think - is this list sufficient or should we pull something like skyzyx/mimetypes to add a real long and comprehensive list of mime types?