Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 1,073 | All time: 3,468 This week: 673 |
Version | License | PHP version | Categories | |||
php7mvc 1.0 | MIT/X Consortium ... | 7.0 | Libraries, Design Patterns, PHP 7 |
Description | Author | |
This package is a framework that uses MVC design pattern under PHP 7. |
Manon Systems MVC Framework
To create a new Controller
Create a new PHP Class and name it exactly as the route will be.
Example: If you will create a dashboard and the route will be Dashboard, then the file will be Dashboard.php
Into Dashboard.php you need to use the following namespaces:
\Session\Handler To handle the Session library \Views\Main To handle the Views \Db\Connect To handle the Database library
Create a class named Dashboard exactly like the same file name
Create a public static magic function called __init() and you can assign a retun type fot it like:
__init() : int __init() : string __init() : boolean __init() : float
etcetera...
Using this function, you can use your own custom functions from within the class.
Then, you need to edit your DB Definitions using the file DbDefinitions into the libs folder.
Files (21) |
File | Role | Description | ||
---|---|---|---|---|
Controllers (4 files, 1 directory) | ||||
libs (3 files, 2 directories) | ||||
Views (1 file, 2 directories) | ||||
.gitignore | Data | Auxiliary data | ||
.htaccess | Data | Auxiliary data | ||
index.php | Example | Class source | ||
LICENSE | Lic. | Auxiliary data | ||
README.md | Doc. | Auxiliary data |
Files (21) | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Doctors (4 files) | ||||
Controller.php | Class | Class source | ||
Doctors.php | Class | Example script | ||
loginStart.php | Class | Class source | ||
MainController.php | Class | Class source |
Files (21) | / | Controllers | / | Doctors |
File | Role | Description |
---|---|---|
Add.php | Class | Example script |
Delete.php | Class | Example script |
Edit.php | Class | Example script |
List.php | Class | Example script |
Files (21) | / | libs |
File | Role | Description | ||
---|---|---|---|---|
Db (1 file) | ||||
Mail (1 file) | ||||
Bootstrapper.php | Class | Class source | ||
DbDefinitions.php | Class | Class source | ||
SessionHandler.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.