PHPackages                             nibiru/nibiru-framework - 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. [Database &amp; ORM](/categories/database)
4. /
5. nibiru/nibiru-framework

ActiveFramework[Database &amp; ORM](/categories/database)

nibiru/nibiru-framework
=======================

PHP MVC rapid prototyping framework

v1.0.0(2y ago)782[1 PRs](https://github.com/alllinux/Nibiru/pulls)BSD-4-ClauseCSSPHP &gt;=8.1.0CI passing

Since Mar 15Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/alllinux/Nibiru)[ Packagist](https://packagist.org/packages/nibiru/nibiru-framework)[ Docs](https://github.com/alllinux/Nibiru)[ RSS](/packages/nibiru-nibiru-framework/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (7)Versions (32)Used By (0)

nibiru framework 🚀
==================

[](#nibiru-framework-rocket)

Welcome to the **nibiru framework**, a powerful MMVC (Modular Model-View-Controller) PHP Framework designed specifically for rapid prototyping. Whether you're building a quick prototype or a large-scale application, **nibiru framework** provides the tools and structure you need to get up and running in no time.

What is MMVC PHP Framework for rapid prototyping?
-------------------------------------------------

[](#what-is-mmvc-php-framework-for-rapid-prototyping)

MMVC in the **nibiru framework** stands for Modular Model-View-Controller. Modules, have the `observer` pattern, and are comprehensive entities that encompass not just the MVC components but also traits, interfaces, plugins, and settings. These modules are designed for loose coupling, promoting modularity and ease of integration. Each module can be loaded through its namespace, offering a flexible way to add and manage functionalities in your application. The built-in observer ensures seamless communication between these modules.

nibiru Binary Command-Line Tool
-------------------------------

[](#nibiru-binary-command-line-tool)

```
  _   _ _ _     _              ______                                           _
 | \ | (_) |   (_)            |  ____|                                         | |
 |  \| |_| |__  _ _ __ _   _  | |__ _ __ __ _ _ __ ___   _____      _____  _ __| | __
 | . ` | | '_ \| | '__| | | | |  __| '__/ _` | '_ ` _ \ / _ \ \ /\ / / _ \| '__| |/ /
 | |\  | | |_) | | |  | |_| | | |  | | | (_| | | | | | |  __/\ V  V / (_) | |  |   <
 |_| \_|_|_.__/|_|_|   \__,_| |_|  |_|  \__,_|_| |_| |_|\___| \_/\_/ \___/|_|  |_|\_
----------------------------------------------------------------------------------------------

Usage: ./nibiru [-m ] [-c ] [-h]

  -m {name}: create a new module with the given name. Add -g switch if a Graylog Server present.
  -c {name}: create a new controller with the given name.
  -p {name} -m {name}: create a new plugin with the given name in the given name for the module.
                       add -g switch if a Graylog Server present.
  -cache-clear: will clear the cache of the applications template_c folder.
  -s: check framework folders and permissions, and set them if they are not present.
  -mi {local|staging|production}: run migration files from application/settings/config/database/.
  -mi-reset {local|staging|production}: will reset the migrations table, use only if you know what
                                        you are doing.
  -mi-reset-file {filename} {local|staging|production}: will reset the migration entry for a filename
                                                        e.g. mytable.sql, use only if you know what
                                                        you are doing.
  -ws {URL} -wp {PORT}: connect to a WebSocket at the given URL and port.
  -h: display this help message.
  -new-cms-page {name} (only available with the CMS module): will create a new page with connection
                                                             to an existing template.
  -delete-cms-page {name} (only available with the CMS module): will delete a CMS page with the given name.
  -version or -v: display the version of the nibiru binary, and the current framework version.

```

For a more detailed explanation and additional functionalities, please refer to the [official documentation](https://nibiru-framework.com).

Database Migrations
-------------------

[](#database-migrations)

In the **nibiru framework**, database migrations play a crucial role in managing and versioning your database schema. Migrations allow developers to define sets of changes that modify the database schema, making it easier to track, roll back, or apply updates as needed.

With the `nibiru` binary tool, managing these migrations becomes even more effortless:

- `./nibiru -mi {environment}`: This command allows you to run migration files from the `application/settings/config/database/` directory for a specific environment (`local`, `staging`, or `production`).
- `./nibiru -mi-reset {environment}`: Use this command with caution. It resets the migrations table, effectively allowing you to start fresh with your migrations.
- `./nibiru -mi-reset-file {filename} {environment}`: If you need to reset a specific migration entry, this command lets you target a particular filename, such as `mytable.sql`, for a given environment.

It's essential to use migrations to ensure that your database schema remains consistent across different environments and stages of your application's lifecycle.

Generating Controllers
----------------------

[](#generating-controllers)

Using the `nibiru` binary tool, developers can effortlessly generate controllers for their applications:

- `./nibiru -c {controller_name}`: This command will create a new controller with the specified name.

Upon generation, the controller will be located in:

```
/application/controllers/{controller_name}.php

```

Additionally, a corresponding view file will be generated and placed in:

```
/application/views/{controller_name}/

```

This structure ensures that the logic in the controller and its associated views are neatly organized and easy to manage.

Generating Modules
------------------

[](#generating-modules)

The `nibiru` binary tool also facilitates the generation of modules:

- `./nibiru -m {module_name}`: This command will create a new module with the given name.

The generated module will have its own directory structure, encompassing traits, interfaces, plugins, settings, and a main PHP file. The structure will resemble:

```
/modules/{module_name}/
    ├── {module_name}.php
    ├── interfaces/
    ├── plugins/
    ├── settings/
    └── traits/

```

This modular approach allows for clear separation of concerns and promotes scalability and maintainability of the application.

Credits
-------

[](#credits)

Created by Stephan Kasdorf, 2023

---

Happy Coding! 💻

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance56

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50.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 ~100 days

Recently: every ~202 days

Total

30

Last Release

80d ago

Major Versions

v0.9.9.x-dev → v1.0.02024-02-27

PHP version history (4 changes)v0.3.5PHP &gt;=7.1.0

v0.6.0.1PHP &gt;=5.4.0

v0.9.6PHP &gt;=8.1.0

v1.0.1.x-devPHP &gt;=8.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12954718?v=4)[Stephan Kasdorf](/maintainers/alllinux)[@alllinux](https://github.com/alllinux)

---

Top Contributors

[![bittomine](https://avatars.githubusercontent.com/u/44709797?v=4)](https://github.com/bittomine "bittomine (68 commits)")[![alllinux](https://avatars.githubusercontent.com/u/12954718?v=4)](https://github.com/alllinux "alllinux (48 commits)")[![maschinen-stockert](https://avatars.githubusercontent.com/u/159045726?v=4)](https://github.com/maschinen-stockert "maschinen-stockert (18 commits)")[![flsk-productions](https://avatars.githubusercontent.com/u/78550478?v=4)](https://github.com/flsk-productions "flsk-productions (1 commits)")

---

Tags

aibitcoin-apibitcoin-paymentbitcoin-walletcms-frameworkcomposercryptocurrencydatabasedatabase-accessframeworkmmvcmvcnavigationnibiruopen-aiphpphp8prototypingroutertemplate-enginephprouterdatabasemvcnavigationtemplate engineprototypingrapidnibiru

### Embed Badge

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

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

###  Alternatives

[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[webparking/laravel-type-safe-collection

This package provides type-safe extension of the laravel collection, forcing a single type of object.

378.2k](/packages/webparking-laravel-type-safe-collection)[modul-is/orm

Lightweight hybrid ORM/Explorer

1118.1k](/packages/modul-is-orm)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.0k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

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