PHPackages                             riimu/baremvc - 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. riimu/baremvc

ActiveLibrary[Framework](/categories/framework)

riimu/baremvc
=============

Bare bones MVC to provide controller/view structure

08PHP

Since May 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Riimu/BareMVC)[ Packagist](https://packagist.org/packages/riimu/baremvc)[ RSS](/packages/riimu-baremvc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bare bones MVC to provide controller/view structure
===================================================

[](#bare-bones-mvc-to-provide-controllerview-structure)

This is not fully featured MVC. This probably does not provide all the features you are looking for. In fact, this framework doesn't even understand the Model part of MVC. The entire purpose of this MVC is to provide as simple as possible framework for simplistic websites in order to have separate controllers and views and a sane way to link them on web pages using mod\_rewrite.

If you need anything more, I would recommend something like Symfony 2.

Usage
-----

[](#usage)

In order to properly use this MVC, you should probably set up your .htaccess file to redirect all calls to the index file. For example:

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)               index.php?path=$1 [L]

```

If you want to follow the default ideology of this MVC, you should have folders like 'controller' and 'view' for controllers and views. Then, create a bootstrap in index.php that should probably look something like this (assuming usage of composer):

```
