PHPackages                             hatemile/hatemile - 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. hatemile/hatemile

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

hatemile/hatemile
=================

HaTeMiLe is a library that can convert a HTML code in a HTML code more accessible.

2.0.0(8y ago)0151Apache-2.0PHP

Since May 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hatemile/hatemile-for-php)[ Packagist](https://packagist.org/packages/hatemile/hatemile)[ Docs](https://github.com/hatemile/hatemile-for-php)[ RSS](/packages/hatemile-hatemile/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (2)Used By (0)

HaTeMiLe for PHP
================

[](#hatemile-for-php)

HaTeMiLe (HTML Accessible) is a library that can convert a HTML code in a HTML code more accessible.

Accessibility solutions
-----------------------

[](#accessibility-solutions)

- [Associate HTML elements](https://github.com/hatemile/hatemile-for-php/wiki/Associate-HTML-elements);
- [Provide a polyfill to CSS Speech and CSS Aural properties](https://github.com/hatemile/hatemile-for-php/wiki/Provide-a-polyfill-to-CSS-Speech-and-CSS-Aural-properties);
- [Display inacessible informations of page](https://github.com/hatemile/hatemile-for-php/wiki/Display-inacessible-informations-of-page);
- [Enable all functionality of page available from a keyboard](https://github.com/hatemile/hatemile-for-php/wiki/Enable-all-functionality-of-page-available-from-a-keyboard);
- [Improve the acessibility of forms](https://github.com/hatemile/hatemile-for-php/wiki/Improve-the-acessibility-of-forms);
- [Provide accessibility resources to navigate](https://github.com/hatemile/hatemile-for-php/wiki/Provide-accessibility-resources-to-navigate).

Documentation
-------------

[](#documentation)

To generate the full API documentation of HaTeMiLe of PHP:

1. [Install phpDocumentor](http://docs.phpdoc.org/getting-started/installing.html);
2. [Execute the phpDocumentor in HaTeMiLe of PHP directory](http://docs.phpdoc.org/guides/running-phpdocumentor.html).

Usage
-----

[](#usage)

Import all needed classes:

```
require_once './phpQuery/phpQuery/phpQuery.php';
require_once './hatemile-for-php/src/hatemile/implementation/AccessibleAssociationImplementation.php';
require_once './hatemile-for-php/src/hatemile/implementation/AccessibleCSSImplementation.php';
require_once './hatemile-for-php/src/hatemile/implementation/AccessibleDisplayScreenReaderImplementation.php';
require_once './hatemile-for-php/src/hatemile/implementation/AccessibleEventImplementation.php';
require_once './hatemile-for-php/src/hatemile/implementation/AccessibleFormImplementation.php';
require_once './hatemile-for-php/src/hatemile/implementation/AccessibleNavigationImplementation.php';
require_once './hatemile-for-php/src/hatemile/util/Configure.php';
require_once './hatemile-for-php/src/hatemile/util/css/phpcssparser/PHPCSSParser.php';
require_once './hatemile-for-php/src/hatemile/util/html/phpquery/PhpQueryHTMLDOMParser.php';

use hatemile\implementation\AccessibleAssociationImplementation;
use hatemile\implementation\AccessibleCSSImplementation;
use hatemile\implementation\AccessibleDisplayScreenReaderImplementation;
use hatemile\implementation\AccessibleEventImplementation;
use hatemile\implementation\AccessibleFormImplementation;
use hatemile\implementation\AccessibleNavigationImplementation;
use hatemile\util\Configure;
use hatemile\util\css\phpcssparser\PHPCSSParser;
use hatemile\util\html\phpquery\PhpQueryHTMLDOMParser;
```

Instanciate the configuration, the parsers and solution classes and execute them:

```
$configure = new Configure();

$parser = new PhpQueryHTMLDOMParser($content);
$cssParser = new PHPCSSParser($parser);

$accessibleEvent = new AccessibleEventImplementation($parser, $configure);
$accessibleCSS = new AccessibleCSSImplementation(
    $parser,
    $cssParser,
    $configure
);
$accessibleForm = new AccessibleFormImplementation($parser, $configure);
$accessibleNavigation = new AccessibleNavigationImplementation(
    $parser,
    $configure
);
$accessibleAssociation = new AccessibleAssociationImplementation(
    $parser,
    $configure
);
$accessibleDisplay = new AccessibleDisplayScreenReaderImplementation(
    $parser,
    $configure
);

$accessibleEvent->makeAccessibleAllDragandDropEvents();
$accessibleEvent->makeAccessibleAllClickEvents();
$accessibleEvent->makeAccessibleAllHoverEvents();

$accessibleForm->markAllAutoCompleteFields();
$accessibleForm->markAllRequiredFields();
$accessibleForm->markAllRangeFields();
$accessibleForm->markAllInvalidFields();

$accessibleNavigation->provideNavigationByAllHeadings();
$accessibleNavigation->provideNavigationByAllSkippers();
$accessibleNavigation->provideNavigationToAllLongDescriptions();

$accessibleAssociation->associateAllDataCellsWithHeaderCells();
$accessibleAssociation->associateAllLabelsWithFields();

$accessibleDisplay->displayAllShortcuts();
$accessibleDisplay->displayAllRoles();
$accessibleDisplay->displayAllCellHeaders();
$accessibleDisplay->displayAllWAIARIAStates();
$accessibleDisplay->displayAllLinksAttributes();
$accessibleDisplay->displayAllTitles();
$accessibleDisplay->displayAllLanguages();
$accessibleDisplay->displayAllAlternativeTextImages();

$accessibleNavigation->provideNavigationByAllSkippers();
$accessibleDisplay->displayAllShortcuts();

$accessibleCSS->provideAllSpeakProperties();

echo $parser->getHTML();
```

Contributing
------------

[](#contributing)

If you want contribute with HaTeMiLe for PHP, read [contributing guidelines](CONTRIBUTING.md).

See also
--------

[](#see-also)

- [HaTeMiLe for CSS](https://github.com/hatemile/hatemile-for-css)
- [HaTeMiLe for JavaScript](https://github.com/hatemile/hatemile-for-javascript)
- [HaTeMiLe for Java](https://github.com/hatemile/hatemile-for-java)
- [HaTeMiLe for Python](https://github.com/hatemile/hatemile-for-python)
- [HaTeMiLe for Ruby](https://github.com/hatemile/hatemile-for-ruby)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

2921d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a2a5f10a8d3e131fb028bb212785af933e3c0729d6f9b410c1d2a0e44b20915?d=identicon)[hatemile](/maintainers/hatemile)

---

Top Contributors

[![carlsonsantana](https://avatars.githubusercontent.com/u/3837162?v=4)](https://github.com/carlsonsantana "carlsonsantana (115 commits)")

---

Tags

accessibilityassistive-technologyscreen-readerwai-ariawcagaccessibilitywcagscreen readerassistive-technologywai-aria

### Embed Badge

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

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

PHPackages © 2026

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