PHP code example of janit / ez-amp-bundle
1. Go to this page and download the library: Download janit/ez-amp-bundle 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/ */
janit / ez-amp-bundle example snippets
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Janit\EzAmpBundle\EzAmpBundle(),
);
}
// ...
}
<amp-img
src="/var/site/storage/images/8/8/2/0/288-8-eng-GB/blog3.jpg"
alt=""
width="1840"
height="1232"
layout="responsive">
</amp-img>