Download the PHP package mmf/mmf without Composer
On this page you can find all versions of the php package mmf/mmf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mmf
README
What is Mamaframework?
Mamaframework is a PHP 5.5 full-stack web framework. It is written with speed and flexibility in mind. It allows developers to build better and easy to maintain websites with PHP.
Mamaframework can be used to develop all kind of websites, from your personal blog to high traffic ones.
Requirements
Mamaframework is only supported on PHP 5.5 and up. Mamaframework needs a Database to manage Access Control List. This Database must be MySQL. Remmember to have the mod rewritte enable.
Installation
1. Install composer
If you don't have composer installed in your system, install it by following this
2. Install project
Usage:
Example:
3. Install database
Use included database dump in project root DumpTestDB
4. Configure apache
The document root need to point to public folder
At this point the mamaframework may be installed
Possible error messages
Error text | Possible solution |
---|---|
{"success":false,"responseData":{"errorCode":1600,"errorMessage":"The URL not match with any of our defined routes"}} |
Go to config/routing.ini to check the declared variable |
{"success":false,"responseData":{"errorCode":0,"errorMessage":"Error trying to connect to db"}} |
Go to config/config.ini to check if the group db_default is correctly configure |
{"success":false,"responseData":{"errorCode":1500,"errorMessage":"User not allow to access"}} |
Check in the database role , permission and role_permission + config/routing.ini if the configuration is correct |
Getting Started
- Representation of directory structre with short description of what includes:
+-- _src (bussines logic) | +-- _app (App logic) | +-- _mmf (Framework) | +-- _translate (PHP translation files) | +-- .htaccess | +-- config.ini (configuration of each Mmf module. | +-- error_page.html (Estandard error page, when framework is not available to load it's own error page) | +-- index.php (File which instantiates autoloader, frontcontroller, comunicator and config)
| +-- routing.ini (File, that conatins, controller, action and parser of response and request) +-- _tests | +-- _src | | +--_endtoend (basic tests to check if all is well configured) | | +--_examples_config (examples of config and routing files that we could use in our projects) | | +--include.common.functions.php (functions to simulated the curl request) | | +--include.php (file with all the major classes instantiated) | | +--mamaframework.sql (initial script to instantiate the database) +-- _docu (documentation generated with APIGen) +-- README.md
Documentation
Please read the documentation file of core functionalities, present in (Google drive > Mamasú Internal > Mamaframework > Documentation > Core Functionalitites) and class diagram stored in (Google drive > Mamasú Internal > Mamaframework > Documentation > class diagram > Mmframework).
Config file
Config file is written using the .ini syntaxis. Basically is grouped by modules
Controllers
the config file bla bla
Models
the config file bla bla
Views
the config file bla bla
Contributing
Mamaframework is a private Mamasu project.
Running Mamaframework Tests
- Install phpunit from https://phpunit.de page.
- Open the terminal, go to project directory and execute: phpunit --color tests/src/endtoend/ , if all goes right, a green message containing 'OK' will apearing.
- If wrong message apears with the message 'db connection error', make sure that config.ini parameters of database are correct and server is working fine.