Example Source Code

Below is a collection of example source code in various languages that I’ve created. Most of this code is hosted at GitHub or here on my site.  If you have any questions about this code please contact me.

MVC Controller Class

  • Source Code: View Source
  • Purpose: Main core controller for entire application framework.
  • Language: PHP5 OOP

Debugger

  • Source Code: View Source
  • Purpose: Used for debugging applications, objects, traces, and performance.
  • Language: PHP5 OOP

Event System

  • Source Code: View Source
  • Purpose: Ability to register application program hooks to connect events and controls within the system.
  • Language: PHP5 OOP

 Exception Handler

  • Source Code: View Source
  • Purpose: Exception handling for applications.
  • Language: PHP5 OOP

 Field Presets

  • Source Code: View Source
  • Purpose: Standardized presets for form fields.
  • Language: PHP5 OOP

File System & Web System Pathing

  • Source Code: View Source
  • Purpose: To maintain consistent file level and web level pathing through all aspects of the application.  Standardizes how all paths are handled.
  • Language: PHP5 OOP

Global Handler

  • Source Code: View Source
  • Purpose: Standardizes how globals are handled and dealt with within the application.
  • Language: PHP5 OOP

XML/HTML Generator

  • Source Code: View Source
  • Purpose: Ability to generate complex XML and HTML content programmatically.
  • Language: PHP5 OOP

Includer

  • Source Code: View Source
  • Purpose: Standardizes the connection between system pathing and including files within the flow of the application.
  • Language:  PHP5 OOP

System I/O

  • Source Code: View Source
  • Purpose: Standardizes file level IO operations for the application.
  • Language:  PHP5 OOP

Library

  • Source Code: View Source
  • Purpose: Repository for lib code. Standardizes including and dependencies for 3rd party engines, frameworks, and libraries
  • Language: PHP5 OOP

Module Interfaces

  • Source Code: View Source
  • Purpose: Standardizes module interfaces.
  • Language: PHP5 OOP

MySQL Abstraction Layer

  • Source Code: View Source
  • Purpose: Standardizes and sanitizes mysql queries and database functionality.
  • Language: PHP5 OOP

Proxy

  • Source Code: View Source
  • Purpose: Handles AJAX calls and calls to off-site systems for applications.
  • Language: PHP5 OOP

Smart Fields

  • Source Code: View Source
  • Purpose: Creates and outputs html controls that maintain their state with minimal coding.
  • Language: PHP5 OOP

Basic Template Engine

  • Source Code: View Source
  • Purpose: A quick programmatic template engine for applications.
  • Language: PHP5 OOP

Data Validation

  • Source Code: View Source
  • Purpose: Standardized data validation algorithms.
  • Language: PHP5 OOP

XML Parser

  • Source Code: View Source
  • Purpose: SimpleXML parser for XML files.
  • Language: PHP5 OOP

Ajax Handler

  • Source Code: View Source
  • Purpose: Standardizes AJAX operations for applications.
  • Language: PHP5 OOP