mijohansen / amphtml
Provides shorthand functions and classes for amphtml generation.
Requires
- oyejorge/less.php: v1.7.0.14
Requires (Dev)
- doctrine/inflector: 1.1.0
- doctrine/instantiator: 1.0.5
- gossi/php-code-generator: ^0.5.0
- phpunit/phpunit: ^4.8
- xtazii/amp-library: ^1.1
This package is auto-updated.
Last update: 2025-03-07 16:46:18 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.