Streamline your PHP development and accelerate your journey with this dual-purpose class library ecosystem. Built on a shared core architecture, you can integrate individual libraries standalone to speed up coding, or seamlessly link them together into a cross-communicating data pipeline. It's the power of simplicity for both seasoned developers and those learning PHP.
- Required: PHP version 8.4 or above
- Core Dependancy: The
CoreyPHP.phpbase class file must always be present in yoursrc/folder, as all other libraries extend from it. - Database: MySQLi is required if you plan on using the database component (
CoreyDB).
It is recommended to have a good general understanding of Object-Oriented PHP coding.
- Include the
autoload.phpfile at the top of the page where you intend to use the libraries. It is highly recommended to use therequire_once()php function.
require_once('autoload.php');
- Create an instance of the specific sub-library class object you intend to use. You do not need to manually initialize the base
CoreyPHPclass first; the sub-libraries will automatically initialize it in the background.
$db = new CoreyDB();
$fx = new CoreyFX();
- Call the methods directly. Any core utility methods (like
getIP()orarrayToJson()) are inherited automatically and can be executed straight from the sub-library object:
$db->method();
All libraries inherit global configuration parsing, custom error tracking, and core utility methods directly from the core file:
- CoreyPHP: Core Foundation, Global Settings, and Utility Base Class
- CoreyDB: Database Management & Query Building
- CoreyFile: File System Management
- CoreyFX: Formulas and Equations
- CoreySecurity: Security Suite
For full documentation see here
CoreyPHP is licensed under the GNU General Public License v3.0