From 755799ae841132b981bc7e7969ef2f7768542d52 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 1 Aug 2025 14:24:54 -0400 Subject: [PATCH] to-do --- docs/CodeHydrater.md | 12 +++-- docs/TODO.md | 114 +++++++++++++++---------------------------- docs/Zephir_code.md | 17 +++++-- 3 files changed, 61 insertions(+), 82 deletions(-) diff --git a/docs/CodeHydrater.md b/docs/CodeHydrater.md index b46e5d4..9025186 100644 --- a/docs/CodeHydrater.md +++ b/docs/CodeHydrater.md @@ -38,6 +38,7 @@ If you want the advanced feature set with Zephir, see the Zephir_code.md file. It is optional... # Framework DIRS +``` src/ ├── bootstrap │   ├── auto_loader.php @@ -152,8 +153,9 @@ src/ └── prod_error.php 21 directories, 91 files - +``` # Project Dirs: +``` protedcted/src ├── aes │   ├── config.aes @@ -219,6 +221,10 @@ protedcted/src └── test.twig 23 directories, 40 files - +``` + +# Main Program Entry Point: +``` /var/www/ProjectCodeHydrater/public/index.php (Entry Point) -public/assets/... \ No newline at end of file +public/assets/... +``` \ No newline at end of file diff --git a/docs/TODO.md b/docs/TODO.md index 97cf701..8237711 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -1,77 +1,41 @@ -# TODOs - [x] → AutoLoader PSR-4 - - [x] → LoadAll Service and Config files that are ON… - - [x] → AEBootLoader and Generator (Encrypted Features and Fall Backs) - - [x] → Encrypted/Compressed Sessions - - [ ] → Ensure JS error reporting works - - [ ] → Force Database methods to try Cache First and Save Cache Data - - [ ] → Kernels - - [ ] → HTTP → Requests, Responce - - [x] → Middleware - - [x] → Macros - - [x] → Routes - - [x] → Controllers - - [.] → Models - - [x] → Views (Twig/Liquid/PHP) - - [x] → JavaScript/CSS Asset loading - - [x] → Strings & Random Engine - - [x] → HTML Document - - [x] → Main Project Tempates - - [x] → 404 Pages/Dev/Prod Errors - - [x] → CLI Detect - - [x] → Paginator - - [x] → Safer I/O - - [x] → End/Open Tag Matching - - [ ] → Rate Limiting - - [x] → PHP Mailer - - [ ] → Access Tokens (like for emails) - - [x] → UUIDv7 (like Database IDs) - - [x] → CSRF Tokens in security.php... - - [x] → Password Hashing/Verify in security.php - - [x] → Twilio Support - - [x] → Logger - - [x] → Error Handler - - [ ] → Sane Config/Service file defaults - - [ ] → Sane Folder Structure and Documentation - - [x] → Default Routes, then load Controllers +## To-Do List: +- [x] → AutoLoader PSR-4 +- [x] → LoadAll Service and Config files that are ON… +- [x] → AEBootLoader and Generator (Encrypted Features and Fall Backs) +- [x] → Encrypted/Compressed Sessions +- [ ] → Ensure JS error reporting works +- [ ] → Force Database methods to try Cache First and Save Cache Data +- [ ] → Kernels + - [x] → HTTP → Requests, Responce +- [x] → Middleware +- [x] → Macros +- [x] → Routes +- [x] → Controllers +- [.] → Models +- [x] → Views (Twig/Liquid/PHP) +- [x] → JavaScript/CSS Asset loading +- [x] → Strings & Random Engine +- [x] → HTML Document +- [x] → Main Project Tempates +- [x] → 404 Pages/Dev/Prod Errors +- [x] → CLI Detect +- [x] → Paginator +- [x] → Safer I/O +- [x] → End/Open Tag Matching +- [ ] → Rate Limiting +- [x] → PHP Mailer +- [ ] → Access Tokens (like for emails) +- [x] → UUIDv7 (like Database IDs) +- [x] → CSRF Tokens in security.php... +- [x] → Password Hashing/Verify in security.php +- [x] → Twilio Support +- [x] → Logger +- [x] → Error Handler +- [ ] → Sane Config/Service file defaults +- [ ] → Sane Folder Structure and Documentation +- [x] → Default Routes, then load Controllers ## Extras: - [x] → LazyCollections, LazyObjects, Money Class - - [ ] → Tests - - [x] → RSS Feed \ No newline at end of file +- [x] → LazyCollections, LazyObjects, Money Class +- [ ] → Tests +- [x] → RSS Feed \ No newline at end of file diff --git a/docs/Zephir_code.md b/docs/Zephir_code.md index 2213034..b054965 100644 --- a/docs/Zephir_code.md +++ b/docs/Zephir_code.md @@ -14,13 +14,15 @@ Zephir/aes-loader/hydraterbootloader/hydraterbootloader/ ``` # Installing Zephir on DEV BOX ONLY To INSTALL Zephir & Parser, see the websites: +``` https://github.com/zephir-lang/php-zephir-parser https://docs.zephir-lang.com/latest/installation/ - +``` Follow their instructions, install/enable the Parser library for PHP, add to your php.ini files [NOTE: .so files are Linux..., .dll are Windows]: +``` [Zephir Parser] extension=zephir_parser.so - +``` # Building the Extensions ``` $ cd /usr/share/php/CodeHydrater/Zephir/aes-license/hydraterlicense @@ -37,7 +39,7 @@ AS long as your PROD Environment has the same system Architecture IE 64bit Linux zephir_parser and hydraterbootloader, to work for Encrypted Features to work. If not using this then do not worry about zephir nor the bootloader... ## DEV will need: -Running Zephir gives you these Shared Object files, add them to your php.ini files (Examples: /etc/php/8.4/cli/php.ini and /etc/php/8.4/fpm/php.ini: +Running Zephir gives you these Shared Object files, add them to your php.ini files (Examples: /etc/php/8.4/cli/php.ini and /etc/php/8.4/fpm/php.ini): ``` [Zephir Parser] extension=zephir_parser.so @@ -47,6 +49,8 @@ extension=hydraterbootloader.so # Update your Secret PHP Files on DEV BOX only ``` $ cd /var/www/ProjectCodeHydrater/protected/src/secret_php_files +Create you .php files inside of this DIR to keep them Secret. + Each file should correspond with the Array_For_Files inside of make_license.php Don't Ship these secret_php_files, they do not belong on PROD!!!! ``` @@ -54,10 +58,15 @@ The .php file names [in secret_php_files folder] must match the .aes file names! # Make a new License File and AES data ``` $ cd /var/www/ProjectCodeHydrater/protected/cli + +EDIT the make license file: +$ nano make_license.php +RUN IT: $ php make_license.php ``` That will generate both keydata and aes files and folders! -#Do Ship to PROD the keydata and aes folders: + +# Do Ship to PROD the keydata and aes folders: ``` /var/www/ProjectCodeHydrater/protected/keydata [Folder and files]. /var/www/ProjectCodeHydrater/protected/src/aes [Folder and files].