Simple vs-code Extension integrates some of CakePHP Framework's common tasks into the editor.
DEBUG HELPER: Creates a status bar label that shows the current Debug value from your current open project. When clicked, it changes the Debug value from app.php or core.php automatically.
Requirements: Works while the ./config/app.php or the ./app/Config/core.php files exists. Since the logic is based on string pattern search, it's recommended not to change the configuration lines of the file.
If you're wondering how does it works here are the steps:
- Basicaly it searches \env('DEBUG',\ or \write('debug',\ pattern;
- Then it holds the index and do a str_split for proccessing the value written on the file.
- After that, there are functions that translate and change the value accordingly to CakePHP's version.
DATABASE HELPER: Coming soon!!
Works with CakePHP 2^ and CakePHP 3^.
cake-cored.enable
: {true/false} enable/disable this extension.cake-cored.debugHelper
: {true/false} enable/disable the Debug Helper interface.
Please, if you want to contribute to this project somehow (organization, development or even providing sugestions for future implementations) send an email to [email protected].
Any kind of support would be appreciated!
Code design choice: There are tons of design patterns that I could use when developing this plugin, but at first glance, I had to draw some diagrams to connect some dots and finnaly ended with this design choice.
The basic thoughts on it was:
- Having a main class that controls functions of this plugin was a necessity.
- Every functionality has its own classes and libs if needed.
Surely there may be weak spots somewhere. I would like suggestions about it. Share your thoughts if you want to. Let's get better coding together! =)
Initial release of CakeCORED with basic functions and concepts.
Debug change functionality working properly and code design revised for new implementations.
Database functionality operational, but limited.