PHPackages                             weew/app - 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. weew/app

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

weew/app
========

Very minimalistic wrapper for a php application.

v2.10.1(9y ago)13477MITPHP

Since Jan 11Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (10)Versions (25)Used By (7)

App
===

[](#app)

[![Build Status](https://camo.githubusercontent.com/66046e2be26eb7948f508ff6b4b0341e11218d659d48a5877dbade0556fe9099/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776565772f6170702e737667)](https://travis-ci.org/weew/app)[![Code Quality](https://camo.githubusercontent.com/55a097a72e68b30863752a3568d98fb4019f353e49f3c4468a778677bc76a7ec/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776565772f6170702e737667)](https://scrutinizer-ci.com/g/weew/app)[![Test Coverage](https://camo.githubusercontent.com/7aca3853c652d6ea69307490b6667a9fb2c47bad2d856a3f12d28b4a6c966bdb/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776565772f6170702e737667)](https://coveralls.io/github/weew/app)[![Version](https://camo.githubusercontent.com/d695590ca9974a7d0fc9076fb126f2179ff050defd0bd07e0de8b5298a8f51cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565772f6170702e737667)](https://packagist.org/packages/weew/app)[![Licence](https://camo.githubusercontent.com/3e61fa7828d1955e80d1baf7bbafb648dd1561837c5baa4a8beec0c5a34e3f4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776565772f6170702e737667)](https://packagist.org/packages/weew/app)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Introduction](#introduction)
- [Usage](#usage)
- [Extensions](#extensions)

Installation
------------

[](#installation)

`composer require weew/app`

Introduction
------------

[](#introduction)

This package is meant to be used as a barebone for any php applications. It uses the [weew/container](https://github.com/weew/container) package for dependency injection, [weew/kernel](https://github.com/weew/kernel) as a kernel where you can register your providers, the [weew/eventer](https://github.com/weew/eventer) package for event handing and the [weew/commander](https://github.com/weew/commander) package as the command bus. Configuration is handled by the [weew/config](https://github.com/weew/config) package.

Please read documentation of different components to see how they work.

Usage
-----

[](#usage)

Creating a new app is very simple:

```
$app = new App('environment');

// or

$app = new App();
$app->setEnvironment('environment');

// get depdency injection container
$app->getContainer();

// get kernel
$app->getKernel();

// get event bus
$app->getEventer();

// get command bus
$app->getCommander();
```

You can provide config sources using the config loader.

```
// get config
$app->getConfigLoader()
    ->addPath('/path/to/config')
    ->addRuntimeConfig(['some' => 'value']);
```

Be aware that applications current `environment` and `debug` mode will always be available inside the config object.

```
// "dev" by default
$app->getEnvironment();
$app->setEnvironment('test');
// will be set to test
$app->getConfig()->get('env');

// false by default
$app->getDebug();
$app->setDebug(true);
// will be set to true
$app->getConfig()->get('debug');
```

Be aware that config is only available after the application start.

Extensions
----------

[](#extensions)

There are several extensions available:

- [weew/app-doctrine](https://github.com/weew/app-doctrine)
- [weew/app-monolog](https://github.com/weew/app-monolog)
- [weew/app-twig](https://github.com/weew/app-twig)
- [weew/app-http](https://github.com/weew/app-http)
- [weew/app-http-request-handler](https://github.com/weew/app-http-request-handler)
- [weew/app-error-handler](https://github.com/weew/app-error-handler)
- [weew/app-error-handler-bugsnag](https://github.com/weew/app-error-handler-bugsnag)
- [weew/app-error-handler-monolog](https://github.com/weew/app-error-handler-monolog)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

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 ~8 days

Recently: every ~23 days

Total

24

Last Release

3633d ago

Major Versions

v1.5.0 → v2.0.02016-03-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b2b854b5829dd13a15967c000ed2119b5faef67aca24d94c653c8ac550d85e?d=identicon)[weew](/maintainers/weew)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15312.0M36](/packages/magento-magento2-functional-testing-framework)[folbert/fewbricks

Write code to create fields and more for Advanced Custom Fields

1216.0k](/packages/folbert-fewbricks)

PHPackages © 2026

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