Skip to content
A project to automatically make AMP (Accelerated Mobile Pages) in PHP.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A Project to automatically make AMP (Accelerated Mobile Pages) in PHP.

This currently represents a method to create them. It is not the most elegant solution, but it works for me and creates valid AMP-HTML based on my input files. Those files only have a small selection of markups.

This is not fully functional yet. It does not properly parse all the required structured data needed by Google.


  1. Copy ampify.php to directory. Requires PHP 5.5+.
  2. Revise the ampify.php to include your specific information for some of the structured data google requires.
  3. Generate your file. We'll be using as an example the "stub.php" file.
  4. Include relevant PHP stuffs in your header element.
  5. Make sure your metadata is right.
  6. Make a copy of the "amp_stub.php" and substitute "stub" with the name of your file.
  7. Go.


Uhh, make it better?

You can’t perform that action at this time.