PHPackages                             minibase/minibase - 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. [Framework](/categories/framework)
4. /
5. minibase/minibase

ActiveLibrary[Framework](/categories/framework)

minibase/minibase
=================

Minimal extensible framework for PHP - done right.

v1.0.0-alpha(13y ago)4104MITPHPPHP &gt;=5.4.0

Since Apr 18Pushed 13y ago1 watchersCompare

[ Source](https://github.com/peec/minibase)[ Packagist](https://packagist.org/packages/minibase/minibase)[ Docs](http://github.com/peec/minibase)[ RSS](/packages/minibase-minibase/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e2aabd446642eb6d762f57e58981b676e480d93abe2872035222b93962549f5a/68747470733a2f2f7472617669732d63692e6f72672f706565632f6d696e69626173652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/peec/minibase)

Minibase (PHP 5.4+)
-------------------

[](#minibase-php-54)

Minibase is a framework for RESTful PHP applications, based on [Event Driven Architecture](http://en.wikipedia.org/wiki/Event-driven_architecture). Minibase is what a framework should do, it gives you a minimum base to extend on as you go. Plugins can be downloaded from anywhere and included easily.

Minibase is **not fullstack**, but with **plugins** it is.

For a fullstack framework see the [Sample Minibase App](https://github.com/peec/minibase-sample). The sample app contains some architecture using best practices and includes some plugins to show the capabilities of Minibase.

#### Configurable

[](#configurable)

We use `JSON` for configuration files, because its known, easy and good performance. You can create a routes.json file and put your route binding there. You can create a app.json file and put app configuration there. For those who likes the programmatic way of binding these things you don't have to use configuration files.

#### Extensible

[](#extensible)

Minibase uses event based architecture with a simple on / trigger system. Using Minibase Plugin system along with the Events makes it easy to create standalone plugins.

Event based architecture makes this framework stand out, all kinds of plugins can be created. Also it's easy. Take a look at [**3rdparty plugins**](docs/3rdparty-plugins.md) to see some plugins that are already created for those who are looking for forexample Twig templating engine, and Doctrine ORM support.

### Install

[](#install)

You can install Minibase with [Composer](http://getcomposer.org/), if you are not using composer, start using it.

1. Install composer.
2. Create composer.json and put a require dependency.

```
{
    "require": {
        "minibase/minibase": "dev-master"
    }
}
```

3. Run `composer install`

### Documentation.

[](#documentation)

- [**Minibase**](docs/minibase.md): Configure the Minibase object.
- [**Routing**](docs/routing.md): See how to do routing, reverse routing and such.
- [**Events**](docs/events.md): Minibase events, listen to these to extend minibase.
- [**Commandline**](docs/command-line.md): Minibase includes symfony CLI, CLI and also be extended with custom commands.
- [**Plugins**](docs/plugins.md): Create your own plugins publish them to composer and share.
- [**3rdparty plugins**](docs/3rdparty-plugins.md): Browse plugins to extend minibase.
- [**Internationalization**](docs/internationalization.md): I18n for your apps with gettext. Full workflow control.
- [**Assetic**](docs/assetic.md): Manage your assets!

### Simple (if you want)

[](#simple-if-you-want)

If you really want no OO-code you can create your apps really fast. Note, there are also OO-way of routing using `Controller.method` approach. See more about [**Routing**](docs/routing.md).

*Creating your app in ~11 lines of code*

```
	require 'vendor/autoload.php'; // Include composer autoloader

	$mb = \Minibase\MB::create(); // Create one application object.

	// Add a route for your homepage
	$mb->route("get", "/", function () {
		// some logic.
		// And return a HtmlResponse object
		return $this->respond("html")->view("views/test.html.php");
	});

	// Start the router engine.
	$mb->start();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

4821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88b748fa2f0dcacab307a6305e98032de7adb93f955bbaf3c6fe029a7369ac84?d=identicon)[peec](/maintainers/peec)

---

Top Contributors

[![peec](https://avatars.githubusercontent.com/u/131546?v=4)](https://github.com/peec "peec (185 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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