PHPackages                             janst123/jsmf - 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. janst123/jsmf

ActiveLibrary[Framework](/categories/framework)

janst123/jsmf
=============

Small PHP framework for building MVC-based applications

v1.0.6(6y ago)135[1 issues](https://github.com/JanST123/JSMF/issues)LGPL-3.0PHPPHP &gt;=7.0

Since Oct 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/JanST123/JSMF)[ Packagist](https://packagist.org/packages/janst123/jsmf)[ RSS](/packages/janst123-jsmf/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)DependenciesVersions (7)Used By (0)

Welcome to the JSMF - The Jan S. MVC Framework
==============================================

[](#welcome-to-the-jsmf---the-jan-s-mvc-framework)

With this framework you can build a whole MVC (Model-View-Controller)-based PHP Application or just use it as a collection of useful PHP classes. All parts of the framework can be used individually.

See the [ApiIndex](docs/ApiIndex.md) for all available classes and methods.

Please refer to the **example application** while the documentation is in this incomplete state.

Installation
------------

[](#installation)

You can install JSMF via Composer. Add the following dependency to your composer.json

```
{
  "require": {
    "janst123/jsmf":">=1.0.0"
}
```

You can also clone JSMF from this repository (use the version tags or clone the master branch for latest changes). In this case you have to write your own autoloader.

Sample Application Bootstrap
----------------------------

[](#sample-application-bootstrap)

This is only needed if you want to base your whole application on JSMF. You can also use single Classes, using the JSMF autoloader or your own.

Place this code in your applications index file. Route all request thru this file (See this [Gist](https://gist.github.com/RaVbaker/2254618) for an introduction on how to route all requests to index.php with Apache) Using this minimal setup will let the JSMF\\Application class determine the Model/Controller/Action from the request url ().

If one or more url parts are not present, the application will always use the "index" action (the "index" controller, the "index" module).

Example: Requesting  will try to call module "index" -&gt; IndexController -&gt; indexAction, Request to  will call module "misc" -&gt; FaqController -&gt; indexAction

```
