mijohansen/amphtml

There is no license information available for the latest version (dev-master) of this package.

Provides shorthand functions and classes for amphtml generation.

dev-master 2019-01-06 20:22 UTC

This package is auto-updated.

Last update: 2024-04-07 15:04:54 UTC


README

php-amphtml is a generated library out of the main amphtml repository. It does not try to validate correct syntax, but provides the developer with shorthand functions and classes to handle the amp tags.

Also it keep track of the dependencies and inject them accordingly in the header of the document. This method can also be called directly.

The library comes with AmpDocument.php which uses Less as its CSS generator. As AMP documents only can have one block of CSS it make sense to have something like this. Again, this is more of a proof of concept.

Be aware that the library is dependent on updates from xtazii/amp-library to get new tags supported. The current file is over 1 year old.