PHP code example of yoya / io_heif

1. Go to this page and download the library: Download yoya/io_heif 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/ */

    

yoya / io_heif example snippets


% php vendor/yoya/io_heif/sample/heiffromhevc.php -f input.hevc > output.heic

% php vendor/yoya/io_heif/sample/heiftohevc.php -f input.heic -r master xs> output.hevc
# iPhoneX depth map
% php sample/heiftohevc.php  -f IMG.HEIC -r aux -u urn:com:apple:photo:2018:aux:portraiteffectsmatte