PHPackages                             moss/framework - 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. moss/framework

AbandonedFramework[Framework](/categories/framework)

moss/framework
==============

The PHP micro-framework

v1.2.1(11y ago)2348911MITPHPPHP &gt;=5.4

Since Oct 18Pushed 9y ago3 watchersCompare

[ Source](https://github.com/mossphp/moss-framework)[ Packagist](https://packagist.org/packages/moss/framework)[ RSS](/packages/moss-framework/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (1)

MOSS Micro Framework
====================

[](#moss-micro-framework)

[![Build Status](https://camo.githubusercontent.com/8e176e88f1e6bc9ae5e4155f9b6fa9d2c2ee5d528d236c5aad96fa1c4b6b85db/68747470733a2f2f7472617669732d63692e6f72672f6d6f73737068702f6d6f73732d6672616d65776f726b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mossphp/moss-framework)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/13c918c532d7670128ad6c398321b9063533678177dfccbeb5a00c709502158f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f73737068702f6d6f73732d6672616d65776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mossphp/moss-framework/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/a132632a65e1c035d1afef6c0be3e242aefd20ca6ebf37f2aa351c86d6e517ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f73737068702f6d6f73732d6672616d65776f726b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mossphp/moss-framework/?branch=master)

For licence details see LICENCE.md Documentation is available on Wiki :

About
-----

[](#about)

Welcome to `Moss` a micro framework, that provides basic tools for building simple web pages or APIs it can also handle something bigger.

So what's the difference between other micro-frameworks?

`Moss` isn't some kind of cropped full stack framework, that was cut down to fit into *micro* segment.

`Moss` was developed as a solution with small footprint, that is easy to extend and with as little dependencies as possible - and still simple to use.

`Moss` also wants to be *fashionable* and follows trends: `dependency injection`, `event dispatching`, `request-response objects`, `clean code`. Not because its fancy to be *trendy*, but because it makes sense and code benefits from them.

Features
========

[](#features)

- fully grown `Router` (not powerful but working :) ),
- `Request` and `Response` objects (got http auth, and easy header management),
- flash messages
- dependency injection container
- event dispatcher with `AOP`
- closure and class controllers (that can be organized into bundles with fluent directory structure),
- simple view that can be easily extended with bridge to use `Twig` (as package in composer)
- and clean code
- and more

Documentation
=============

[](#documentation)

Documentation is available on Wiki :

Quickstart
==========

[](#quickstart)

Add to `composer.json`:

```
	{
	    "require": {
	        "moss/framework": "*"
	    }
	}
```

Or from console

```
	php composer.phar require moss/framework

```

Then create entry file, eg `./web/index.php` containing:

```
