Magic 1.1.2
This extension provides access to the libmagic library, which is used (e.g. by the file(1) command) to identify the type of a binary or text file based on its initial bytes. The module offers a simple interface, with the bulk of the interface with libmagic being performed behind-the-scenes.