PHPackages                             elmsln/hax\_php\_lib - 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. elmsln/hax\_php\_lib

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

elmsln/hax\_php\_lib
====================

HAX php library of helper classes for serving appstore spec and integrations with web components

0.11.0(6y ago)01Apache-2.0PHPPHP ^7.1

Since Aug 9Pushed 6y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

HAX and Web components PHP Library
==================================

[](#hax-and-web-components-php-library)

Install
-------

[](#install)

Get polymer cli installed prior to usage of this (and (yarn)\[\] / an npm client of some kind)

```
$ yarn global add polymer-cli
# or...
$ npm install -g polymer-cli
```

Then clean up the asset list you actually want to use in production. A large list has been added to this repo for you in `build.js`.

HAXService
----------

[](#haxservice)

This is a series of helpers for integrating HAX with PHP based systems. Specifically, this helps in getting the HAX Appstore specification output. Appstore is a JSON blob which expresses to HAX how to connect to various services. This helps with integrating with PHP based backends so they can serve up API keys as well as extend what comes across.

WebComponentsService
--------------------

[](#webcomponentsservice)

WebComponentsService also helps get the polyfill applied in a uniform way

```
// require the service
require WebComponentsService.php;
$WCService = new WebComponentsService();
// return a string to your template / front end some how while passing in
// the path to where the component build directory has been placed.
return $WCService->applyWebcomponents('location/of/your/components/');
```

In Drupal this looks like `$WCService->applyWebcomponents("sites/all/libraries/webcomponents");`

You can see this library implemented with some additional customizations in the following frameworks:

- GravCMS -
- Drupal 6 -
- Drupal 7 -
- Drupal 8 -
- Backdrop -

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

2470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4406e85edba4ec7270b4fd14b2db0ec33c9d62ce9fa2246f8491d9ef2de13d82?d=identicon)[btopro](/maintainers/btopro)

---

Top Contributors

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

---

Tags

haxphpphp-library

### Embed Badge

![Health badge](/badges/elmsln-hax-php-lib/health.svg)

```
[![Health](https://phpackages.com/badges/elmsln-hax-php-lib/health.svg)](https://phpackages.com/packages/elmsln-hax-php-lib)
```

###  Alternatives

[phpmentors/stagehand-fsm

A finite state machine

361.1k](/packages/phpmentors-stagehand-fsm)

PHPackages © 2026

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