PHPackages                             mcshane/chem-mvc - 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. mcshane/chem-mvc

ActiveLibrary[Framework](/categories/framework)

mcshane/chem-mvc
================

light weight mvc framework for php

0.0.3(5y ago)038MITPHP

Since Apr 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shaneburns/ChemMVC)[ Packagist](https://packagist.org/packages/mcshane/chem-mvc)[ RSS](/packages/mcshane-chem-mvc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Chemistry MVC
=============

[](#chemistry-mvc)

A lightweight, highly use-case configurable, extensible, easy to integrate MVC framework with an implemented strict custom class mapping and casting process for controller action parameter data types(objects specifically)

Installing
----------

[](#installing)

Install through composer with:

```
composer require mcshane/chem-mvc

```

Start faster with a template
----------------------------

[](#start-faster-with-a-template)

Just replace 'my-project' with the name of your project

```
composer create-project eadrom/chemmvc-template my-project

```

Delete the newly installed composer files in 'my-project' root and cd to 'my-project'/app/ and run

```
composer install

```

The project structure is now setup and composer dependencies installed. You're ready to start building your web project.

To the controllers.

Usage
-----

[](#usage)

Chem MVC works off of a routing catalyst that assumes a url stucture of

```
/ControllerName/ActionName/Params

```

Take the following url for example

```
https://my-site.cool/

```

With Chemistry MVC's default routing, this url would invoke the '/home/index' action. 'home' being the default controller name and 'index' being the default action name. In turn the above url would be equivilant to.

```
https://my-site.cool/home/index

```

While these routing behaviours can be altered, this will assume you keep them the same.

Traverse your project to my-project/app/controllers/homeController.php

It should look as follows from a fresh install of the template

```
