Download the PHP package janst123/jsmf without Composer
On this page you can find all versions of the php package janst123/jsmf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download janst123/jsmf
More information about janst123/jsmf
Files in janst123/jsmf
Package jsmf
Short Description Small PHP framework for building MVC-based applications
License LGPL-3.0
Informations about the package jsmf
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 for all available classes and methods.
Please refer to the example application while the documentation is in this incomplete state.
Installation
You can install JSMF via Composer. Add the following dependency to your composer.json
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
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 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 (http://host/module/controller/action).
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 http://host will try to call module "index" -> IndexController -> indexAction, Request to http://host/misc/faq will call module "misc" -> FaqController -> indexAction