PHPackages                             ac/slimfra - 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. ac/slimfra

ActiveLibrary[Framework](/categories/framework)

ac/slimfra
==========

A thin extension of Silex for small projects.

0.1.0(12y ago)2901[1 PRs](https://github.com/AmericanCouncils/Slimfra/pulls)PHP

Since Jan 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/AmericanCouncils/Slimfra)[ Packagist](https://packagist.org/packages/ac/slimfra)[ RSS](/packages/ac-slimfra/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Slimfra
=======

[](#slimfra)

Slimfra is a thin extension of the Silex microframework for building small(ish) projects. It provides a configurable base application, a simple base controller, and command, which can access the app and its services and configuration.

For documentation on the excellent Silex framework, and examples of how to use it (all of which applies to Slimfra), refer to the [Silex documentation](http://silex.sensiolabs.org/).

Slimfra was built for personal use and rapid app development at work in order to easily convert some simple legacy projects into an easier to manage structure. Why is it named Slimfra? Because.

If anyone wishes to contribute, please do, but we recommend contributing to Silex for things that would be of benefit to the broader community.

Installation &amp; Use
----------------------

[](#installation--use)

Require `"ac/slimfra":"0.1.0"` in your `composer.json`. Then run `composer update ac/slimfra`

Set your project up the same as you would any other Silex app.

The base Controller and Command provided both implement ArrayAccess, which lets you refer to the parent app via `$this`

For example:

```
$service = $this['some.service.name'];
$config = $this['some.value'];
```

### Controllers

[](#controllers)

```
class MyController extends Slimfra\Controller
{
	public function helloWorldAction()
	{
		$service = $this->app['some.service'];

		//...do whatever

		return 'Hello World!';
	}
}

$app = new Slimfra\Application();
$app->get('/hello-world', 'MyController::helloWorldAction');
$app->run();
```

### Commands

[](#commands)

```
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class HelloWorldCommand extends Slimfra\Command
{
	protected function configure()
	{
		$this->setName('hello-world');
	}

	protected function execute(InputInterface $input, OutputInterface $output)
	{
		$service = $this->app['some.service'];

		//... do whatever

		$output->writeln('Hello World!');
	}
}

$app = new Slimfra\Console(new Slimfra\Application());

$app->add(new HelloWorldCommand());

$app->run();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

4501d ago

### Community

Maintainers

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

---

Top Contributors

[![evillemez](https://avatars.githubusercontent.com/u/318976?v=4)](https://github.com/evillemez "evillemez (25 commits)")

### Embed Badge

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

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

###  Alternatives

[flint/flint

Enhanced Silex

12167.5k](/packages/flint-flint)[ddesrosiers/silex-annotation-provider

A silex service provider that allows the use of annotations in ServiceControllers.

25246.7k3](/packages/ddesrosiers-silex-annotation-provider)[tobiassjosten/responsible-service-provider

A Silex ServiceProvider for automagic response formatting.

3490.8k](/packages/tobiassjosten-responsible-service-provider)[php-di/silex-bridge

PHP-DI integration in Silex

2465.4k1](/packages/php-di-silex-bridge)[propel/propel-service-provider

Propel integrationfor Silex.

2625.2k3](/packages/propel-propel-service-provider)[stikmanw/silex-newrelic

Integrate the NewRelic PHP API into Silex framework

2014.7k](/packages/stikmanw-silex-newrelic)

PHPackages © 2026

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