Search by

mini4work / framework

MNaz

A minimalistic and flexible PHP framework with a lightweight core and modular structure.

Package info

gitlab.com/mini4work/framework

Issues

pkg:composer/mini4work/framework

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

1.0.6 2026-11-10 12:50 UTC

This package is not auto-updated.

Last update: 2026-11-25 10:00:30 UTC


README

Mini4Work Logo

Mini4Work is a lightweight, minimalistic, and universal PHP framework designed for developers who value simplicity and flexibility. It offers a highly customizable block-based structure and a powerful dependency injection container, allowing you to build exactly what you need without unnecessary overhead.

Mini4Work framework documentation · Mini4Work web server documentation

Key Features

  • Minimalistic Core – Focus on essential components, keeping your codebase clean and maintainable.
  • Flexible Dependency Injection – Built-in container for easy management of dependencies.
  • Modular Block Structure – Develop and reuse independent modules with ease.
  • High Customizability – Choose only the features you need, avoiding unnecessary complexity.
  • Lightweight and Fast – Designed to deliver optimal performance with minimal resource usage.
  • Easy to Learn and Use – Straightforward design and clear documentation make it accessible for developers of all levels. (In develop, really!)

Getting started

Prerequisites

  • PHP version 8.3 or high
  • Composer

Creating app

This command will generate a new directory containing the basic project structure. Give it a try:

composer create-project mini4work/framework myFirstApp

Move to your new directory and make first launch:

cd myFirstApp
php m4w

Installing modules

Run php m4w modules:install to choose one or more modules by number or name, separated by spaces or commas. Press Enter or enter 0 to cancel.

You can also specify modules directly:

php m4w modules:install lib-io http

The command runs Composer in the application directory and adds the selected packages to its dependencies. Composer must be available in PATH. lib-io installs mini4work/lib-io; http installs mini4work/http. Both modules are unfinished. Installation does not configure or start their kernels. The HTTP module now targets core ^2.0 and webserver ^1.0 and requires PHP 8.4+. Installing it from Packagist requires a published compatible release.

Contributing

Mini4Work is designed to remain simple and lightweight. If you have any improvements or features to suggest for the core framework, feel free to submit a Pull Request.

License

Mini4Work is distributed by The MIT license.

Module scaffolds

Installed modules can declare scaffolding commands in extra.m4w.scaffolds of their composer.json. Run php m4w --help to see discovered commands. The HTTP module provides php m4w http:routes to create routes/http.php and app/Controllers/ExampleController.php in your application. If either target exists, the entire scaffold is skipped. Existing files are never overwritten. Commands become available on the next CLI invocation after installing a module version that includes its scaffold declaration.