PHPackages                             meract/meract - 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. meract/meract

ActiveProject[Framework](/categories/framework)

meract/meract
=============

Lightweight PHP framework

v1.6.4.0(12mo ago)234MITJavaScriptPHP ^8.0

Since May 16Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/meract/meract)[ Packagist](https://packagist.org/packages/meract/meract)[ RSS](/packages/meract-meract/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (15)Used By (0)

Языкlanguage[Русский / Russian](README-rus.md)[English / Английский](README.md)Description
-----------

[](#description)

Meract is an MVC framework for PHP.

It has many features that set it apart from other frameworks, from its server to its tight integration with the front-end.

### Main namespace

[](#main-namespace)

The main namespace for most of the classes that you will use is, `Meract\Core`

Documentation
-------------

[](#documentation)

Specific technical documentation on the methods [available here](https://meract.github.io/core/)

[Step By Step Guide](docs/stepByStep/install.md)

Structure
---------

[](#structure)

```
.
├───app                 - Your application code
│   ├───controllers     - Controllers
│   ├───core            - Scripts executed before server startup (shared utilities, additional settings, etc.)
│   ├───middleware      - Route middleware
│   ├───migrations      - Database migrations
│   ├───morph-triggers  - Morph triggers
│   ├───scripts         - Autoload Frontend Scripts
│   ├───models          - Your models
│   ├───routes          - Your routes
│   ├───static          - Static files (HTML, CSS, JS)
│   ├───views           - Views directory
│   │   ├───colorschemes- Morph component color schemes
│   │   ├───components  - Morph components
│   │   ├───layouts     - View layouts
│   │   ├───modules     - Morph modules
│   │   └───themes      - Morph component themes
│   │
│   └───workers         - Your workers (background tasks/queue processors)
│
├───meract              - Framework code
│   ├───commands        - Commands for `mrst` CLI tool
│   └───drivers         - Drivers for framework components (e.g., StorageDrivers)
│
├───config.php          - Framework and application configuration
├───index.php           - Entry point (launches server and your application)
├───worker.php          - Worker entry point (processes queue tasks)
├───mrst                - Framework CLI utility
│
├───vendor              - Composer dependencies
├───composer.json       - Composer configuration
├───composer.lock       - Composer lock file
└───tests               - PHPUnit tests directory

```

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

[](#configuration)

The configuration is stored in a file `config.php`, by default it looks something like this:

```
