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

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

base/base
=========

22.1k1Hack

Since Nov 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/taniele/base)[ Packagist](https://packagist.org/packages/base/base)[ RSS](/packages/base-base/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Base is a framework built specifically for HHVM/Hack. It does not run on PHP. We wanted to make Base simple to understand, configure and use, and possibly performant.

Base is the ideal RAD framework, but it is also powering production apps.

---

Highlights
----------

[](#highlights)

- **Small and simple (for real).** This means few files, almost zero dependencies, little configuration, but everything to get you going. With a small set of APIs that just make sense, you can get started right after you clone this repo.
- **Atomic controllers.** A route maps to one controller, and one controller can handle one action only.
- **MWC (Model-Widget-Controller).** Templating has never been so easy. Write XHP layouts and widgets for a super-fluent syntax and full XSS protection.
- **Not-so-opinionated.** Don't like our templating? Sure, use Handlebars. Don't like our ORM? Plug Doctrine in. We love difference.

Features
--------

[](#features)

- **Built-in XHP localisation** via `:t` and `:t` tags
- **Layouts and widgets**: `:base:layout` and `:base:widget`, built on top of XHP, too.
- **Built-in workers and message queue**: supports Redis for async communication with external web services and APIs
- **Event bus**: `ApiRunner::addEventListener` and `ApiRunner::fireEvent` allows you to extend Base by creating custom hooks
- **Built-in MongoDB ODM.** Strongly type your documents using `BaseModel`. Link documents and automatically resolve references using `BaseRef`.
- **Route parameters.** Specify a route map and link parameters. Reference routes by their names, not their URLs. Create route aliases (one controller, multiple routes).
- **Request parameter validation and casting.** Specify which parameter your controller must accept, and Base performs validation, sanitisation and type casting accordingly. Everything else is discarded.

Contribute
----------

[](#contribute)

Ever wanted to drive a new framework to widespread popularity? Base is the right chance. There are specific areas in which you can make an impact:

- **Ship new features.** Base is so new that every new feature is a great idea. PR are always welcome.
- **Test.** We would like to build our custom test framework, and increase our test coverage.
- **Discussions.** Let's crystallise Base's design principles and grow from there.
- **Go `strict`.** We want Base to run on `strict` only on the long run. Currently, we are using gradual typing and arrays, but we want to be more specific on that.
- **Documentation.** Although you should be able to understand what Base is doing by simply looking at its code, it would be great to have tutorials and documentation to help people build great apps.

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.4% 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://www.gravatar.com/avatar/6cd1016d0fe57bab367606614750289f5fd892fec18efeb5f168e733cc64629d?d=identicon)[taniele](/maintainers/taniele)

---

Top Contributors

[![iamdaniele](https://avatars.githubusercontent.com/u/208292?v=4)](https://github.com/iamdaniele "iamdaniele (71 commits)")[![simobern28](https://avatars.githubusercontent.com/u/57037669?v=4)](https://github.com/simobern28 "simobern28 (23 commits)")[![simobern](https://avatars.githubusercontent.com/u/2749582?v=4)](https://github.com/simobern "simobern (13 commits)")

### Embed Badge

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

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

###  Alternatives

[lochmueller/autoloader

Automatic components loading of ExtBase extensions to get more time for coffee in the company ;) This ext is not a PHP SPL autoloader or class loader - it is better! Loads CommandController, Xclass, Hooks, FlexForms, Slots, TypoScript, TypeConverter, BackendLayouts and take care of createing needed templates, TCA configuration or translations at the right location.

19364.9k5](/packages/lochmueller-autoloader)[ircmaxell/php-types

A PHP CFG Type Inference / Reconstruction Engine

361.0k](/packages/ircmaxell-php-types)

PHPackages © 2026

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