PHP code example of fpietka / imparse

1. Go to this page and download the library: Download fpietka/imparse library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fpietka / imparse example snippets


$parser = new Imparse\Parser('picture.jpg');

$parser->readExif();
$parser->getMetaData()['exif'];

$parser->readIptc();
$parser->getMetaData()['iptc'];

$parser->readXmp();
$parser->getMetaData()['xmp'];