PHP code example of artka54 / ampify

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

    

artka54 / ampify example snippets

 php
use artka54\ampify\Ampify as Ampify;

$Ampify   = new Ampify($htmlToConvert);
$Ampified = $Ampify->ampifyImgs();