Getting Started
php-Mvc is like a project template. The installation is pretty fast forward - even if your project already has content!
Installation
Bower
$ bower install php-Mvc --save
Manual
The manual installation is nearly as simple as the bower installation:- Download the latest version of php-Mvc: Download
- Unpack the ZIP-package.
- Copy (or cut) and paste the content of the php-Mvc-master-directory into the directory of your project.
- If there are copying issues (same named files) you should use the files from the ZIP-package.
Configuration
After you installed php-Mvc you can open the config.json to configure php-Mvc for your personal needs.
You can find a list of all possible settings in the Wiki.
You can find a list of all possible settings in the Wiki.
Routing
Routing is the A and O of the MVC-concept. Good thing php-Mvc comes with a default route:
This means every call is either redirected to the default controller (Home) and action (index) or to the requested controller and action.
You can find an explanation of the routing and how you can configure it for your desires here.
{controller}/{action}
This means every call is either redirected to the default controller (Home) and action (index) or to the requested controller and action.
You can find an explanation of the routing and how you can configure it for your desires here.
Examples
Coming soon...
License
php-Mvc is developed under the MIT license:
The MIT License (MIT) Copyright (c) 2016 David Vollmers <php-mvc@david.vollmers.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.