1. Go to this page and download the library: Download joserick/png-metadata 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/ */
joserick / png-metadata example snippets
// include composer autoload
etadata
use PNGMetadata\PNGMetadata;
// build PNGMetadata object with a image path.
$png_metadata = new PNGMetadata('Photo.png'); // return a 'ArrayObject' or 'Exception'
$png_metadata = PNGMetadata::extract('Photo.png'); // return a 'ArrayObject' or 'False'