Recommend this page to a friend! |
Classes of Michele Pagnin | MToolkit | README.md | Download |
|
DownloadMToolkitMToolkit is a simple PHP toolkit, it is compliant with the PSR-0 Standard: - A fully-qualified namespace and class must have the following structure \\\<Vendor Name>\\\(\<Namespace\>)*\\\<Class Name>. - Each namespace must have a top-level namespace ("Vendor Name"). (Missing) - Each namespace can have as many sub-namespaces as it wishes. - Each namespace separator is converted to a DIRECTORY_SEPARATOR when loading from the file system. - Each underscore in the class name is converted to a DIRECTORY_SEPARATOR. The underscore has no special meaning in the namespace. - The fully-qualified namespace and class is suffixed with .php when loading from the file system. - Alphabetic characters in vendor names, namespaces, and class names may be of any combination of lower case and upper case. It borns from a requirement: develop a website quickly and powerfully. I know, someone can says "Use Zend Framwork, CakePHP!", but I could answer: "They are very good toolkits, but they aren't the toolkit that I want!" :P The development model of MToolkit is rolling release. I search some people (developer or not) to increase and modify this strategy: my goal is to manage the versioning of this framework. The experiences with other toolkit in different platforms have led to create this toolkit. MToolkit borns like a mash-up of two frameworks: .NET and Qt. o_O Yes, the framework of the evil and the desktop framework for excellence. Some good features
MToolkit componentsLike Qt, MToolkit has a lot of components, one for every type of usage. Here the list: - Core - Network - Model/Sql - Controller - View Software using MToolkitLet's startCreate a folder for your project. Download the latest version of MToolkit in the project folder. On the root of your project create a new file (Settings.php) with this content:
This file sets the root of your project and now you no longer have to use require, require_once, include, include_once directives. This file must be include in every entry page of your project. Entry pageAn entry page is the page loaded at start time. Now, we will see how create the controller of the entry page and his html code. Controller (Index.php):
And the view file. Every view file must contains the meta tag, with the correct content-type:
Index.view:
Using Composercomposer.json:
On the root of your project create a new file (Settings.php) with this content:
And now you can create your web app. |