cedricziel / stupidmime
This package is abandoned and no longer maintained.
No replacement package was suggested.
Stupid mime detection.
Fund package maintenance!
0.0.2
2015-12-10 10:28 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-28 15:07:46 UTC
README
Stupid mime detection for limited PHP environments like Google AppEngine Sandbox.
What does it do?
This contains a simple helper function get_file_mime_type which accepts a file location string like
/foo/bar.jpg and it will guess the mime type via the file extension.
It will use the php module fileinfo if present. If not, it will guess with a simple internal table.
Installation
composer require cedricziel/stupidmime