PHPackages                             broneq/minifw - 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. broneq/minifw

ActiveLibrary[Framework](/categories/framework)

broneq/minifw
=============

MiniFw - Mini framework inspired by Phalcon framework

1.0.1(7y ago)11MITPHPPHP ^7.2

Since Feb 22Pushed 7y agoCompare

[ Source](https://github.com/broneq/miniFW)[ Packagist](https://packagist.org/packages/broneq/minifw)[ Docs](https://github.com/broneq/miniFW)[ RSS](/packages/broneq-minifw/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

**MiniFw - Mini framework inspired by Phalcon framework**

Framework inspired by Phalcon to do simple thinks on not dedicated servers.

**Usage**

composer install broneq/miniFW

```
use MiniFwSample\Config\Sample;

include __DIR__.'/Lib/Autoloader.php';
$autoloader = new \MiniFw\Lib\Autoloader();
$autoloader->registerNamespace('MiniFw', __DIR__.'/pathtovendor');
$autoloader->registerNamespace('SomeOtherNameSpace', __DIR__.'/otherdir');

try {
    new Sample();
} catch (Exception $e) {
    http_response_code(500);
    echo 'FATAL: ' . $e->getMessage();
}

```

*Sample config*

```
namespace MiniFwSample\Config;

use MiniFw\Lib\Auth;
use MiniFw\Lib\Db;
use MiniFw\Lib\Di\BaseConfig;
use MiniFw\Lib\Di\Dependency;
use MiniFw\Lib\Router;
use MiniFw\Lib\View;

class Sample extends BaseConfig
{
    /**
     * Sample constructor.
     * @throws \Exception
     */
    public function __construct()
    {
        $this->addDependency((new Dependency('auth', Auth::class))
            ->addCall('addUser', 'broneq', 'sha1password')
            ->addCall('authRequest'));
        //
        $this->addDependency((new Dependency('router', Router::class))
            ->addParameter('\'MiniFwSample\Controller\\')
            ->addCall('registerNotFoundAction', function () {
                header("HTTP/1.0 404 Not Found");
                echo "Page not found.\n";
                die();
            })
            ->addCall('registerDefaultController', 'index')
            ->addCall('handle', $_GET)
        );
        //
        $this->addDependency((new Dependency('db', Db::class))
            ->addParameter(__DIR__ . '/../db.sqlite'));
        //
        $this->addDependency((new Dependency('view', View::class))
            ->addParameter(__DIR__ . '/../tpl'));
        //
        //
        $this->autorun('auth');
        $this->autorun('router');
        $this->autorun('view');
        //
        $this->build();
    }
}

```

*Sample controller*

```
class File extends BaseController
{
    public function indexAction(): void
    {
        $this->view->render('file/list', ['data' => ['title'=>'test']);
    }
}

```

*Sample model*

```
class InquiryFile extends BaseModel
{
    public $inquiry_id;

    public $title;

    public $file_name;

    public $file;

    protected function sanitize(): void
    {
        if ($this->id) {
            $this->id = (int)$this->id;
        }
        $this->inquiry_id = (int)$this->inquiry_id;
        if (!$this->inquiry_id) {
            throw new \ErrorException('No inquiry_id provided');
        }
        $this->title = strip_tags(trim($this->title), ENT_QUOTES);
        $this->file_name = strip_tags(trim($this->file_name), ENT_QUOTES);
    }
}

```

*Issues*

If you are using PHP running in CGI mode you have to add rule to your .htaccess file:

RewriteRule .\* - \[E=HTTP\_AUTHORIZATION:%{HTTP:Authorization},L\]

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

2638d ago

### Community

Maintainers

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

---

Top Contributors

[![broneq](https://avatars.githubusercontent.com/u/25199131?v=4)](https://github.com/broneq "broneq (16 commits)")

---

Tags

frameworkframework-phpphp7frameworkPHP7framework-PHP

### Embed Badge

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

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

###  Alternatives

[fuel/fuel

FuelPHP is a simple, flexible, community driven PHP 5.4+ framework, based on the best ideas of other frameworks, with a fresh start!

1.5k42.3k](/packages/fuel-fuel)

PHPackages © 2026

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