https://github.com/poen0121/codeswitcher-router
Open source PHP web application framework routing model based on code version control.
https://github.com/poen0121/codeswitcher-router
application codeswitcher framework php router web
Last synced: about 1 year ago
JSON representation
Open source PHP web application framework routing model based on code version control.
- Host: GitHub
- URL: https://github.com/poen0121/codeswitcher-router
- Owner: poen0121
- Created: 2018-05-31T05:41:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T01:56:13.000Z (over 7 years ago)
- Last Synced: 2023-09-17T09:50:39.654Z (over 2 years ago)
- Topics: application, codeswitcher, framework, php, router, web
- Language: PHP
- Homepage:
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CodeSwitcher-Router
PHP Framework ( PHP >= 5.2.12 ) CLI,CGI
> About
CodeSwitcher is a web application framework with intuitive development.
We believe that development must be a simple, flexible development framework.
CodeSwitcher is the code version control framework.
Based on Model 2 MVC architecture.
-----------------------------------------------------
MVC :
( Model ) - in models directory.
( View ) - in templates directory.
( Controller ) - in events directory.
> Learning Documents
Please read `readme.php` document.
> Directory Structure
1.core : Main program files directory.
2.configs : Configs directory support version control mechanism.
3.languages : Languages directory support version control mechanism.
4.libraries : Developer libraries directory support version control mechanism.
5.models : Models directory support version control mechanism.
6.events : Events script directory relies on the version control mechanism.
7.resources : Storage resources directory version control mechanism is optional.
8.templates : Templates directory support version control mechanism.
9.storage : System storage directory.
> Version Control - Revision Rule
[Main version number] . [Minor version number] . [Revision number]
#Main version number:
A major software updates for incremental , usually it refers to the time a major update function and interface has been a significant change.
#Minor version number:
Software release new features , but does not significantly affect the entire software time increments.
#Revision number:
Usually in the software have bug , bug fixes released incremented version.
Example :
Version : 0.0.0
Version : 1.0.0
Version : 1.0.1
Version : 1.1.0
Version : 2.0.0
Version : 2.0.1
Version : 2.1.0
> Note Namespace
Global namespace code :
use csl_mvc;
use csl_error;
use csl_func_arg;
use csl_header;
use csl_inspect;
use csl_path;
use csl_import;
use csl_file;
use csl_language;
use csl_template;
use csl_version;
use csl_browser;
use csl_time;
use csl_debug;
> Router Controller Main Directory
1.configs/routes : System configuration for the routes.
2.events/router : Router controller script.
3.templates/error/400 : System error 400 content directory.
4.templates/error/404 : System error 404 content directory.