PHPackages                             milan-miscevic/inert - 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. milan-miscevic/inert

ActiveLibrary[Framework](/categories/framework)

milan-miscevic/inert
====================

Mini PHP framework with basic MVC and service container support

0.14(4y ago)0569[1 issues](https://github.com/milan-miscevic/inert/issues)[10 PRs](https://github.com/milan-miscevic/inert/pulls)MITPHPPHP ^7.4 || ^8CI failing

Since Jan 1Pushed 1mo agoCompare

[ Source](https://github.com/milan-miscevic/inert)[ Packagist](https://packagist.org/packages/milan-miscevic/inert)[ RSS](/packages/milan-miscevic-inert/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (29)Used By (0)

inert
=====

[](#inert)

[![Software License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![PDS Skeleton](https://camo.githubusercontent.com/50d01a5094afcc3a827c3cadaec43d23b2a256cb249f5fdd6e5ffdb53ea7971c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-pds/skeleton)

[![GitHub Build](https://github.com/milan-miscevic/inert/workflows/Test/badge.svg?branch=master)](https://github.com/milan-miscevic/inert/actions)[![Quality Gate Status](https://camo.githubusercontent.com/5e75f402ccbee27819e1fb05bf3e1b3de4d821339b1283037362cfd4ec9e7bf9/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d696c616e2d6d697363657669635f696e657274266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=milan-miscevic_inert)[![Type Coverage](https://camo.githubusercontent.com/13882bb0de4bdd58b35865e73d1a48ba9a795835130a6a322d578a7fc5f2af32/68747470733a2f2f73686570686572642e6465762f6769746875622f6d696c616e2d6d697363657669632f696e6572742f636f7665726167652e737667)](https://shepherd.dev/github/milan-miscevic/inert)[![Mutation testing badge](https://camo.githubusercontent.com/e984bb7172e3a7077b36f31700e83ba2618f374721bf9b2c84c3d4a86d40b435/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466d696c616e2d6d69736365766963253246696e6572742532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/milan-miscevic/inert/master)

This repository provides a mini PHP framework with basic MVC and service container support. The name comes from the type of projects it is intended for - small and (almost) non-dynamic, or just inert.

After working with full-fledged frameworks on bigger projects, it can be strange to work in vanilla PHP with `require`s and without controllers and actions. The main idea was to bring controllers and actions to small private projects to organize code but keep simplicity (of configuration) from vanilla PHP and dependencies minimal. This is how this framework was born. Later, during development, the service locator is added.

Minimal installation
--------------------

[](#minimal-installation)

Install Inert via Composer:

```
composer require milan-miscevic/inert
```

`index.php`

```
