PHPackages                             mijohansen/amphtml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mijohansen/amphtml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mijohansen/amphtml
==================

Provides shorthand functions and classes for amphtml generation.

041PHP

Since Jan 6Pushed 7y agoCompare

[ Source](https://github.com/mijohansen/php-amphtml)[ Packagist](https://packagist.org/packages/mijohansen/amphtml)[ RSS](/packages/mijohansen-amphtml/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-amphtml ⚡
=============

[](#php-amphtml-)

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.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/589907?v=4)[Michael](/maintainers/mijohansen)[@mijohansen](https://github.com/mijohansen)

---

Top Contributors

[![mijohansen](https://avatars.githubusercontent.com/u/589907?v=4)](https://github.com/mijohansen "mijohansen (1 commits)")

### Embed Badge

![Health badge](/badges/mijohansen-amphtml/health.svg)

```
[![Health](https://phpackages.com/badges/mijohansen-amphtml/health.svg)](https://phpackages.com/packages/mijohansen-amphtml)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
