PHPackages                             alterfw/hero - 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. [Database &amp; ORM](/categories/database)
4. /
5. alterfw/hero

ActiveLibrary[Database &amp; ORM](/categories/database)

alterfw/hero
============

Alter's model binding

v0.2.19(9y ago)41.3k2[1 issues](https://github.com/alterfw/hero/issues)1MITPHPPHP &gt;=5.6.0CI failing

Since Jul 28Pushed 6y ago2 watchersCompare

[ Source](https://github.com/alterfw/hero)[ Packagist](https://packagist.org/packages/alterfw/hero)[ RSS](/packages/alterfw-hero/feed)WikiDiscussions master Synced 1mo ago

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

Hero
====

[](#hero)

[![Build Status](https://camo.githubusercontent.com/d3a95cfc052369a93c8ee2840a6fc766697885fe4f81a17f36b0c0b53cb2474a/68747470733a2f2f7472617669732d63692e6f72672f616c74657266772f6865726f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alterfw/hero)

Hero is a library that allows you easily create Models to your WordPress theme or plugin and interact with them through a simple and beautiful API.

Instalation
-----------

[](#instalation)

```
composer require alterfw/hero

```

Require the composer autoload file into your `functions.php`:

```
require "vendor/autoload.php";
```

And Hero will be ready!

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

[](#documentation)

You can read more about how Ampersand works in the [documentation page](http://alterfw.github.io/hero).

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

[](#contributing)

This project doesn't have an styleguide yet but you should follow the existing code. Before create any pull requests make sure that all tests are passing.

### Development Environment

[](#development-environment)

To setup de development environment first download [Docker](https://www.docker.com/) and create a virtual machine:

```
docker-machine create --driver virtualbox default
eval "$(docker-machine env default)"

```

Then run:

```
docker-compose up

```

This will create a WordPress and a theme with Hero installed as dependency.

If you want to modify the theme files, take a look at the `test/fixtures` directory. These files are copied during the `docker-compose up` command, so if you change anything in these files you need to terminate the process and run again.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~11 days

Recently: every ~33 days

Total

27

Last Release

3646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/680e77e677507f54274cabc890bf31178f926649e657732ea4b8db4afa5d0bf3?d=identicon)[sergiovilar](/maintainers/sergiovilar)

---

Top Contributors

[![jpaulobneto](https://avatars.githubusercontent.com/u/1436946?v=4)](https://github.com/jpaulobneto "jpaulobneto (4 commits)")[![caiovncius](https://avatars.githubusercontent.com/u/4031854?v=4)](https://github.com/caiovncius "caiovncius (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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