The crossphp development framework is a simple, efficient, lightweight and easy-to-extend PHP5.3+ development framework.
Features:
Lightweight and no dependencies, HMVC, annotation configuration, routing aliases, PSR standards, Layer layout.
1. Demand
PHP5.3 or above, mysql requires PDO support.
2. Introduction
Support PSR standard and composer. HMVC supports annotation configuration (supports customization, there is nothing you can't think of, but nothing you can't do). Layer layout support makes it easier to change templates. Route alias (write the code first, then define it, for example, rul:/Controoooooller/Actiooooon/5, which can be specified as: /d/5 through the alias). The global exception handling system and error display allow you to quickly locate specific lines of code during development. Simple Mysql query. Various performance comparison tests are welcome.
3. Installation
Access the default web page through http://localhost/skeleton/htdocs/web
To access http://localhost/skeleton/htdocs/admin normally, you need to modify your database configuration skeleton/config/db.config.php and import the skeleton/sql/admin/back.sql file.
crossphp development framework v1.5.6 update log:
1. Router adjustment, adding event router
2. When PDOSqlDriver performs a URD operation, it returns the number of affected records
3. Other optimizations
Optimize Redis driver, same host and different DB, only establish one connection
Add the params_dot parameter to control the delimiter of the URL parameter part (app configuration file url part)
Module::getModel(), to prevent repeated instantiation
View class permissions have been adjusted, the virtual_path function has been added, and the makeIndex() method has been added to generate the index part of the URL.
Response adds COOKIE related methods, adjusts basicAuth() parameters, and adds digestAuth() method
Helper::createFolders() increases return value (bool)
FileCache deletes RequestCache related logic, and Memcache adds multi-server support
RequestCache interface parameter adjustment. Optimize KEY and add ignore_params to ignore all parameters.
Renaming the exception template folder and optimizing some annotation details
Skeleton optimization:
Enhanced security, add salt to Admin password, and use sha256 algorithm
Streamline the code in the layer and put the code for outputting the navigation menu into the view controller for processing.
Optimize the security card controller class, optimize the UI, and prevent misoperations
Fixed bugs in left menu selection judgment and incorrect triangle status on the right side of tree menu
Upgrade AdminLTE to 2.4, font-awesome to 4.7
Add nprogress and toggle libraries
Standard code comments and status codes
Update popup library