Download the PHP package nibiru/nibiru-framework without Composer
On this page you can find all versions of the php package nibiru/nibiru-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nibiru/nibiru-framework
More information about nibiru/nibiru-framework
Files in nibiru/nibiru-framework
Package nibiru-framework
Short Description PHP MVC rapid prototyping framework
License BSD-4-Clause
Homepage https://github.com/alllinux/Nibiru
Informations about the package 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?
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
For a more detailed explanation and additional functionalities, please refer to the official documentation.
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 theapplication/settings/config/database/
directory for a specific environment (local
,staging
, orproduction
)../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 asmytable.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
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:
Additionally, a corresponding view file will be generated and placed in:
This structure ensures that the logic in the controller and its associated views are neatly organized and easy to manage.
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:
This modular approach allows for clear separation of concerns and promotes scalability and maintainability of the application.
Credits
Created by Stephan Kasdorf, 2023
Happy Coding! :computer:
All versions of nibiru-framework with dependencies
smarty/smarty Version ^3.1
phpmailer/phpmailer Version ^6.1
dasprid/enum Version ^1.0.3
bacon/bacon-qr-code Version >=1.0.3
mevdschee/php-crud-api Version ^2.14
symfony/psr-http-message-bridge Version ^2.1
laminas/laminas-diactoros Version ^2.24