A project to automatically make AMP (Accelerated Mobile Pages) in PHP.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
amp_stub.php
ampify.php
stub.php

README.md

ampify

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.

usage

  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.

todo

Uhh, make it better?