Robert 4 months ago
parent 4bcda15737
commit 755799ae84
  1. 12
      docs/CodeHydrater.md
  2. 114
      docs/TODO.md
  3. 17
      docs/Zephir_code.md

@ -38,6 +38,7 @@ If you want the advanced feature set with Zephir, see the Zephir_code.md file.
It is optional... It is optional...
# Framework DIRS # Framework DIRS
```
src/ src/
├── bootstrap ├── bootstrap
   ├── auto_loader.php    ├── auto_loader.php
@ -152,8 +153,9 @@ src/
└── prod_error.php └── prod_error.php
21 directories, 91 files 21 directories, 91 files
```
# Project Dirs: # Project Dirs:
```
protedcted/src protedcted/src
├── aes ├── aes
   ├── config.aes    ├── config.aes
@ -219,6 +221,10 @@ protedcted/src
└── test.twig └── test.twig
23 directories, 40 files 23 directories, 40 files
```
# Main Program Entry Point:
```
/var/www/ProjectCodeHydrater/public/index.php (Entry Point) /var/www/ProjectCodeHydrater/public/index.php (Entry Point)
public/assets/... public/assets/...
```

@ -1,77 +1,41 @@
# TODOs ## To-Do List:
 [x] → AutoLoader PSR-4 - [x] → AutoLoader PSR-4
- [x] → LoadAll Service and Config files that are ON…
[x] → LoadAll Service and Config files that are ON… - [x] → AEBootLoader and Generator (Encrypted Features and Fall Backs)
- [x] → Encrypted/Compressed Sessions
[x] → AEBootLoader and Generator (Encrypted Features and Fall Backs) - [ ] → Ensure JS error reporting works
- [ ] → Force Database methods to try Cache First and Save Cache Data
[x] → Encrypted/Compressed Sessions - [ ] → Kernels
- [x] → HTTP → Requests, Responce
[ ] → Ensure JS error reporting works - [x] → Middleware
- [x] → Macros
[ ] → Force Database methods to try Cache First and Save Cache Data - [x] → Routes
- [x] → Controllers
[ ] → Kernels - [.] → Models
- [x] → Views (Twig/Liquid/PHP)
[ ] → HTTP → Requests, Responce - [x] → JavaScript/CSS Asset loading
- [x] → Strings & Random Engine
[x] → Middleware - [x] → HTML Document
- [x] → Main Project Tempates
[x] → Macros - [x] → 404 Pages/Dev/Prod Errors
- [x] → CLI Detect
[x] → Routes - [x] → Paginator
- [x] → Safer I/O
[x] → Controllers - [x] → End/Open Tag Matching
- [ ] → Rate Limiting
[.] → Models - [x] → PHP Mailer
- [ ] → Access Tokens (like for emails)
[x] → Views (Twig/Liquid/PHP) - [x] → UUIDv7 (like Database IDs)
- [x] → CSRF Tokens in security.php...
[x] → JavaScript/CSS Asset loading - [x] → Password Hashing/Verify in security.php
- [x] → Twilio Support
[x] → Strings & Random Engine - [x] → Logger
- [x] → Error Handler
[x] → HTML Document - [ ] → Sane Config/Service file defaults
- [ ] → Sane Folder Structure and Documentation
[x] → Main Project Tempates - [x] → Default Routes, then load Controllers
[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: ## Extras:
[x] → LazyCollections, LazyObjects, Money Class - [x] → LazyCollections, LazyObjects, Money Class
- [ ] → Tests
[ ] → Tests - [x] → RSS Feed
[x] → RSS Feed

@ -14,13 +14,15 @@ Zephir/aes-loader/hydraterbootloader/hydraterbootloader/
``` ```
# Installing Zephir on DEV BOX ONLY # Installing Zephir on DEV BOX ONLY
To INSTALL Zephir & Parser, see the websites: To INSTALL Zephir & Parser, see the websites:
```
https://github.com/zephir-lang/php-zephir-parser https://github.com/zephir-lang/php-zephir-parser
https://docs.zephir-lang.com/latest/installation/ 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]: 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] [Zephir Parser]
extension=zephir_parser.so extension=zephir_parser.so
```
# Building the Extensions # Building the Extensions
``` ```
$ cd /usr/share/php/CodeHydrater/Zephir/aes-license/hydraterlicense $ 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. zephir_parser and hydraterbootloader, to work for Encrypted Features to work.
If not using this then do not worry about zephir nor the bootloader... If not using this then do not worry about zephir nor the bootloader...
## DEV will need: ## 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] [Zephir Parser]
extension=zephir_parser.so extension=zephir_parser.so
@ -47,6 +49,8 @@ extension=hydraterbootloader.so
# Update your Secret PHP Files on DEV BOX only # Update your Secret PHP Files on DEV BOX only
``` ```
$ cd /var/www/ProjectCodeHydrater/protected/src/secret_php_files $ 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 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!!!! 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 # Make a new License File and AES data
``` ```
$ cd /var/www/ProjectCodeHydrater/protected/cli $ cd /var/www/ProjectCodeHydrater/protected/cli
EDIT the make license file:
$ nano make_license.php
RUN IT:
$ php make_license.php $ php make_license.php
``` ```
That will generate both keydata and aes files and folders! 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/keydata [Folder and files].
/var/www/ProjectCodeHydrater/protected/src/aes [Folder and files]. /var/www/ProjectCodeHydrater/protected/src/aes [Folder and files].

Loading…
Cancel
Save