The TryingToScale PHP framework.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
tts_framework/documents/folders.txt

96 lines
6.0 KiB

tts_framework/src
├── bootstrap
   ├── auto_loader.php (PSR-4-autoloader)
   ├── common.php (custom string FNs, wipe data, and dump)
   ├── errors.php (Error Handler)
   ├── html_purifier.php (HTMLPurifier Bootstrap)
   ├── requires.php (secure_includes, file/dir Filters/Validators)
   ├── safer_io.php (Sanitize Input, Validate data and Escape output)
   ├── site_helper.php (Set/Get Routes/Root Paths/Assets, etc...)
├── classes
   ├── api.php (Encodes JSON/XML/PHP Serializer)
   ├── app.php (Fallback routes for the controllers)
   ├── arrays
     ├── common.php (Months/US States)
     ├── countries.php
     ├── mimes.php (get_mime_type for downloads)
     ├── mocking
       ├── address.php (Fake zip, city, street)
       ├── phone.php (Fake phone #)
       └── rnd_names.php (Fake person: age, first/last names)
     ├── shortn.php (short_street_suffix)
     └── zipcodes.php (5-digit Zip into State)
   ├── assets.php (Fetch CSS/JS/Image, and site redirects)
   ├── console_app.php (Detects if running PHP from Command Line)
   ├── contracts
     └── http_request_options.php (Used by http_curl_request)
   ├── database
     ├── dummy_data.php (Populates a DB w/ Dummy Data you give it bu # Rows wanted)
     ├── model.php (Model used to save into DB)
     ├── paginate.php (PDO DB query to create links)
   ├── enum
     ├── app_environment.php (fetch if is_production environment)
     └── same_site.php (same_site: Lax, Strict, None)
   ├── exceptions
     ├── Bool_Exception.php (Handles invalid Boolean types)
     └── DB_Exception.php (Handles DB Exceptions)
   ├── extras
│ │   ├── bb_code_parser.php (Take BB code and display output as HTML)
│ │   └── html_parser.php (Escape HTML into BB code...to save into db)
   ├── html_document.php (HTML Class: set/get CSS/JS/Breadcrumbs/Title/Author/Header/Footer)
   ├── html.php (HTML Select-Options, Table maker)
   ├── json.php (Outputs DB Records into JSON format)
   ├── loadall.php (Creates loadall.php files if do not exist for Services & Config-Files)
   ├── memory_usage.php (Displays PHP Memory Usage, when debug is set)
   ├── misc.php (create a short url from get_url, post_var, misc. filter FNs)
│ ├── obsolete (Anything in here, will be SKIPPED by my Compiler)
│ │ ├── http_socket_request.php (Failed to get Sockets working, use Guzzle, PHP HTTP client instead!)
     └── sessions_interface.php
   ├── page_not_found.php (CLI or tts built in views/404 page not found error)
   ├── random_engine.php (random bytes/numbers/array shuffle)
   ├── router.php (router::get/post, etc... used to setup PHP routes)
   ├── safer_sql.php (Play-Testing SQL filter)
   ├── security.php (hasing, csrf_token\session_hijacking_functions)
   ├── services
     ├── encryption.php (Symmetric encryption based on openssl)
     ├── emailer.php (PHPMailer helper to send an email out)
     ├── html_filter.php (HTMLPurifier Bootstraper)
     ├── http_requests
       └── http_curl_request.php (Does Curl requests)
     ├── liquid_templates.php (Sets up Liquid Templates Engine for Views)
     ├── log.php (Appends new Log to Project's logs folder)
     ├── paragon_crypto
       ├── crypto.php (Newer sodium_crypto)
       ├── password_storage.php (Hash and Verify Hashed passwords)
       └── sodium_storage.php (Secure Cookies, Sessions, etc...)
     ├── sessions
       ├── cookie_sessions.php
       ├── file_sessions.php
       └── redis_sessions.php
     ├── simple_rest.php (demo REST API helper)
     └── twilio.php (Loads Twilio Vendor files into Name Space)
   ├── session_management.php (Starts PHP secure Sessions)
   ├── tag_matches.php (Used by View, to make sure common HTML Tags are Balanced out)
   ├── time_zone_selection.php (Builds HTML to Pick your Time Zone from Select Box)
   ├── time_zones.php (Convert UTC into Users TimeZone)
   ├── traits
     ├── database
       ├── run_sql.php (sqlite/MySQL/PG Helper to get fields/tables)
       └── validation.php (Validate mysql fields)
     └── security
     ├── csrf_token_functions.php (Get an Cross-Site Request Forge - Prevention Token)
     └── session_hijacking_functions.php (Prevent SESSION Hijacking and Fixation in PHP)
│ ├── validator.php (validates HTML Forms)
   └── view.php (Loads view files from common folders you defined)
├── compiler.php (the PHP Compiler)
├── dist
   ├── tts_arrays.php (Mocking Data arrays)
   ├── tts_extras.php (bb code and html parsers)
   └── tts.php (the Compiled framework, all in one-file!!)
├── main.inc.php (Bootstraps App, sets configure, registry, di, and name-spaces)
└── views
├── 404_page.php (Default 404 Page Not Found Page/Image)
   ├── dev_error.php (When NOT Live, show Exceptions/Errors)
└── prod_errors.php (when Live, this: Sorry, we had an error... Page is used)
~22 directories, ~74 files