PHPackages                             appertly/axe - 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. [Templating &amp; Views](/categories/templating)
4. /
5. appertly/axe

ActiveLibrary[Templating &amp; Views](/categories/templating)

appertly/axe
============

Appertly XHP Extras: Some useful XHP tags and utilities

0.2.7(9y ago)12952MITHack

Since May 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/appertly/axe)[ Packagist](https://packagist.org/packages/appertly/axe)[ Docs](http://github.com/appertly/axe)[ RSS](/packages/appertly-axe/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (10)Used By (2)

appertly/axe
============

[](#appertlyaxe)

**A** ppertly **X** HP **E** xtras: Some useful XHP tags and utilities for Hack/HHVM.

[![Packagist](https://camo.githubusercontent.com/15779be1c19a80dfc585f0436579fb277ac80ff405f8567a6584db342d43a415/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170706572746c792f6178652e737667)](https://packagist.org/packages/appertly/axe)[![Build Status](https://camo.githubusercontent.com/acab83df6f0627d062f27d1d447c671e0db87b4e5563544aa567ada0826a5b47/68747470733a2f2f7472617669732d63692e6f72672f6170706572746c792f6178652e737667)](https://travis-ci.org/appertly/axe)

Installation
------------

[](#installation)

You can install this library using Composer:

```
$ composer require appertly/axe
```

- The master branch (version 0.x) of this project requires HHVM 3.12 and depends on [XHP](https://github.com/facebook/xhp-lib) 2.2+.

Compliance
----------

[](#compliance)

Releases of this library will conform to [Semantic Versioning](http://semver.org).

Our code is intended to comply with [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/). If you find any issues related to standards compliance, please send a pull request!

Features
--------

[](#features)

### Page + Layout

[](#page--layout)

The class `Axe\Page` allows collaborating classes to influence the tags that appear on a rendered page.

`:axe:layout` takes a `Axe\Page` object and renders a correct HTML document complete with DOCTYPE, `html`, `head`, and `body` tags. Any settings in the `Axe\Page` object will appear in the rendered `:axe:layout`.

```
$page = new Axe\Page();
$page->setTitle('My example title')
    ->addBodyScript('/script.js')
    ->addBodyClasses(['foo', 'bar'])
    ->addStylesheet('/styles.css')
    ->addHeadScriptInline('console.log("Hello world!");');
$html = Hello world!;
echo (string)$html;
```

```
>

        My example title
        console.log("Hello world!");

        Hello world!

```

### Helper Tags

[](#helper-tags)

We've included several helper tags for common stuff.

- Gravatar image
- Columns (and golden ratio columns)
- Bootstrap-compatible breadcrumbs, form groups, pagination, and fieldsets
- Nearly Bootstrap-compatible alerts
- Email and Phone Number links
- Convert text with line endings to multiple ``s
- `` and ``s generated from a `Map` of values
- `` or `` and ``s generated from a `Map` of values
- …and *more!*

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~29 days

Total

9

Last Release

3471d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/659262eac941ffe4795493834425fc9a2369c2c9df3cc565ed4194f1d37be934?d=identicon)[doublecompile](/maintainers/doublecompile)

---

Top Contributors

[![doublecompile](https://avatars.githubusercontent.com/u/4267230?v=4)](https://github.com/doublecompile "doublecompile (13 commits)")

---

Tags

hhvmhackxhp

### Embed Badge

![Health badge](/badges/appertly-axe/health.svg)

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

PHPackages © 2026

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