PHPackages                             michaltaglewski/m-gine - 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. michaltaglewski/m-gine

ActiveLibrary

michaltaglewski/m-gine
======================

06PHP

Since Jul 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/michaltaglewski/m-gine)[ Packagist](https://packagist.org/packages/michaltaglewski/m-gine)[ RSS](/packages/michaltaglewski-m-gine/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (0)

 [![](src/builder/assets/public/img/logo-120.png)](src/builder/assets/public/img/logo-120.png)

M-Gine Framework
================

[](#m-gine-framework)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0

Installing via Composer
-----------------------

[](#installing-via-composer)

Create the composer.json file as follows:

```
{
    "require-dev": {
        "michaltaglewski/m-gine": "dev-main"
    }
}
```

Run the composer installer:

```
php composer.phar install
```

Then initiate your first project. See the [M-gine commands](#m-gine-commands) section below.

M-Gine commands
---------------

[](#m-gine-commands)

Right after the composer installation is completed, you are able to use **M-Gine** commands tool.

Execute binary file located in the vendor directory, like following:

```
./vendor/bin/mgine help
```

This command should display something similar to:

```
$ ./vendor/bin/mgine help

M-Gine commands (0.0.1)

Available commands:
  create-project       Creates a new project. Usage: project-create [name]
  init-project         Initializes a new project in current directory. Usage: init-project
  create-controller    Creates a Controller. Usage: create-controller [name] [namespace]
```

Initiate a project:

```
$ ./vendor/bin/mgine init-project
```

Project Directory Structure
---------------------------

[](#project-directory-structure)

```
config/             framework configuration
controllers/        MVC controllers directory
public/             web public folder (includes index.php)
models/             MVC models directory
tests/              tests of the core framework code
views/              MVC views directory

```

Configuration
-------------

[](#configuration)

Configure your main web configuration file **config/web.php**:

```
