PHPackages                             wikimedia/slimapp - 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. wikimedia/slimapp

ActiveLibrary

wikimedia/slimapp
=================

Common classes to help with creating an application using the Slim micro framework and Twig template engine.

v0.9.2(6y ago)42.5k↓100%2GPL-3.0-or-laterPHPPHP &gt;=5.6.4

Since Oct 6Pushed 2mo ago12 watchersCompare

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

READMEChangelog (6)Dependencies (10)Versions (9)Used By (0)

Wikimedia SlimApp
=================

[](#wikimedia-slimapp)

Common classes to help with creating an application using the [Slim](https://www.slimframework.com/) micro framework and [Twig](https://twig.symfony.com/) template engine.

System Requirements
-------------------

[](#system-requirements)

- PHP &gt;= 7.2.0

Configuration
-------------

[](#configuration)

The library follows the [Twelve-Factor App](http://12factor.net/)configuration principle of configuration via environment variables.

The following variables can be optionally provided:

- LOG\_CHANNEL = Logger name (default: `app`)
- LOG\_LEVEL = PSR-3 logging level (default: `notice`)
- LOG\_FILE = fopen()-compatible filename or stream URI (default: `php://stderr`)
- CACHE\_DIR = Directory to cache twig templates (default: `data/cache`)
- SMTP\_HOST = SMTP mail server (default: `localhost`)
- TEMPLATE\_DIR = Twig template directory (default: `data/templates`)
- I18N\_DIR = i18n data file directory (default: `data/i18n`)
- DEFAULT\_LANG = Default i18n lanaguage (default: `en`)

### Apache

[](#apache)

```
SetEnv LOG_LEVEL debug
SetEnv CACHE_DIR /var/cache/twig
SetEnv DEFAULT_LANG es

```

### .env file

[](#env-file)

For environments where container based configuration isn't possible or desired, a `.env` file can be placed in the root of the project. This file will be parsed using PHP's `parse_ini_file()` function and the resulting settings will be injected into the application environment.

```
LOG_LEVEL=debug
CACHE_DIR=/var/cache/twig
DEFAULT_LANG=es

```

Working on the code
-------------------

[](#working-on-the-code)

Code review process is done through [Gerrit](https://gerrit.wikimedia.org/). To start hacking on the application refer to the [Gerrit Tutorial](https://www.mediawiki.org/wiki/Gerrit/Tutorial).

Key Features
------------

[](#key-features)

#### Dao

[](#dao)

Base Class for data access objects

This class contains common methods for performing SQL operations and handling nested transactions.

#### Controller

[](#controller)

Page Controller

This class contains common methods for setting default data, getting flash messages and handling undefined methods.

#### Form

[](#form)

Class for collecting and validating users' data

This class contains common methods for getting users' data, validating it and getting error messages in case of invalid data.

Authors
-------

[](#authors)

- Bryan Davis, Wikimedia Foundation
- Niharika Kohli, Wikimedia Foundation

Based on code developed for the Wikimania Scholarships application and the Wikimedia Grants Review application.

License
-------

[](#license)

[GNU GPL 3.0+](//www.gnu.org/copyleft/gpl.html "GNU GPL 3.0")

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance57

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.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.

###  Release Activity

Cadence

Every ~219 days

Recently: every ~369 days

Total

8

Last Release

2331d ago

PHP version history (3 changes)v0.5.0PHP &gt;=5.3.7

v0.9.0PHP &gt;=5.5.9

v0.9.2PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b94d9718c06ec7c3fd7a104bc44966fb7464b9ec7411582343ea35a7a6a85f08?d=identicon)[mediawiki](/maintainers/mediawiki)

![](https://www.gravatar.com/avatar/716c86d71cbf921e7912a505f89d799de398fc0a3af0bd4c8862834b2d642bd7?d=identicon)[wikimedia](/maintainers/wikimedia)

---

Top Contributors

[![bd808](https://avatars.githubusercontent.com/u/6469?v=4)](https://github.com/bd808 "bd808 (29 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (7 commits)")[![nj4710](https://avatars.githubusercontent.com/u/13145287?v=4)](https://github.com/nj4710 "nj4710 (3 commits)")[![jdforrester](https://avatars.githubusercontent.com/u/881572?v=4)](https://github.com/jdforrester "jdforrester (2 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (2 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (1 commits)")[![hashar](https://avatars.githubusercontent.com/u/281689?v=4)](https://github.com/hashar "hashar (1 commits)")[![ricordisamoa](https://avatars.githubusercontent.com/u/4588496?v=4)](https://github.com/ricordisamoa "ricordisamoa (1 commits)")[![tgr](https://avatars.githubusercontent.com/u/145412?v=4)](https://github.com/tgr "tgr (1 commits)")[![MusikAnimal](https://avatars.githubusercontent.com/u/366374?v=4)](https://github.com/MusikAnimal "MusikAnimal (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.4k37.3k](/packages/matomo-matomo)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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