This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Repository navigation
v2.9
Changes and Updates
- Implemented PHP PSR formatting for better code readability and consistency.
- Added cache directory to
.gitignoreto prevent unnecessary files from being tracked by version control. - Improved functionality of the
useTraitfunction, enabling it to return the object. - Introduced the
X-Powered-Byheader for enhanced framework identification. - Enhanced type hinting and return types for certain methods to improve code robustness and maintainability.
- Updated documentation links within the code for improved reference accessibility.
- Added comments for constants of the
HTMLBuilderto enhance code documentation and readability. - Modified constants using the
cml_configfunction for improved configuration management. - Renamed the
buildfunction tobuildHTMLto better reflect its purpose of constructing full HTML content. - Incorporated meta information from a route into the
getAllRoutesfunction for enhanced route management. - Optimized the
addRoutemethod by removing unused array keys. - Refactored the
allMetasmethod to receive metadata for a specific route URL, enhancing flexibility and customization. - Updated
composer.jsonfile. - Renamed
$routervariable to$appin theindex.phpfile. - Added new configuration options:
CACHE_PATHCML_DEBUG_BAR
- Introduced new CLI commands:
create:dump| Create a database dumpcml:version| Show CML Framework versioncml:update| Update CML Frameworkcml:component| Download an official CML Framework Component from the docsdo:action| Call a function from the functions.phphelp| Shows CML Framework command list
- Renamed the functions
sql2array_fileandsql2db_filefunction to sqlFile2...
Fixed
- Corrected wrong output of the
wherefunction for accurate query results.
Added
- Added new files:
cml-functions.phpcml-vars.php
- Introduced new functions:
cml_config(global) | Retrieves or sets the CML configuration values.setHeader(app) | Set custom HTTP headers.getAllHooks(app) | Returns all registered hooks.setHook(app) | Adds a custom hook name to the list of registered hooks and echoes the hook content.componentHook(app) | Adds a component to a hook.whereIn(app) | Sets a "where in" condition for the current route.
- Implemented a new Cache Class with the following functions:
cache: for static page caching.setCacheData,getCacheData,deleteCacheData: for transient data management.
- Added Debug-Bar functionality with the
addBarElementfunction for custom box addition to the debug bar. - Added new functions
setData,getData,deleteData: for saving, retrieving, and deleting data from the database respectively.
Full Changelog: v2.8...v2.9