PHP PRONOM drip: Recognize file formats using PRONOM registry

Recommend this page to a friend!
  Info   Example   View files (12)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 99 All time: 9,391 This week: 372
Version License PHP version Categories
drip 1.0.0GNU General Publi...5.2PHP 5, Files and Folders, Parsers
Description Author

This package recognize file formats and versions using the PRONOM registry.

It uses the PRONOM registry developed by the Digital Preservation Department of the National Archives of the United Kingdom to identify format and version of a file or a stream of data

The class uses a DROID utility signature file that can be downloaded on their web site.

Innovation Award
PHP Programming Innovation award nominee
April 2015
Number 13
Many applications generate files in custom formats that may be hard to recognize without knowledge of the way the data is structured in the files.

This class provides a solution to recognize many types of file formats using the PRONOM file format signature registry.

Manuel Lemos
Picture of Cyril Vazquez
  Performance   Level  
Name: Cyril Vazquez <contact>
Classes: 1 package by
Country: France France
Age: ???
All time rank: 4276108 in France France
Week rank: 762 22 in France France
Innovation award
Innovation award
Nominee: 1x

You can download the latest DROID Signature File at

Basic use:

- require class scripts
- instanciate new drip, providing with a Droid Signature file path

- use drip::file to get the format identification for a file
- use drip::buffer to get the format from a stream contents
File Role Description
abstractFragment.php Class Abstract class for right and left fragments
abstractSequence.php Class Abstract class for byte sequences
byteSequence.php Class Byte sequence class
drip.php Class The main drip class
example.php Example Example script
format.php Class Class for formats
internalSignature.php Class Internal Signature class
leftFragment.php Class Left fragment class
LICENSE Lic. License information
rightFragment.php Class Right fragment class
subSequence.php Class Sub sequence class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,391
This week:372

For more information send a message to info at phpclasses dot org.