Download the PHP package patryknamyslak/patbase without Composer
On this page you can find all versions of the php package patryknamyslak/patbase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patryknamyslak/patbase
More information about patryknamyslak/patbase
Files in patryknamyslak/patbase
Package patbase
Short Description A highly configurable DB facade and Database interaction interface (Patbase)
License MIT
Informations about the package patbase
Patbase - Type-Safe Multi-Driver Database Abstraction + DB Facade and Query Builder
Stop hardcoding database drivers. Patbase provides a clean, type-safe interface for working with any PDO-supported database.
Features
✅ DB Facade - DB Facade + Query builder for faster ship times! \n
✅ 9 Database Drivers - MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and more
✅ Type-Safe - PHP 8.4 enums prevent invalid drivers
✅ Zero Config - Automatic DSN generation and default ports
✅ Lazy Loading - Connect only when needed
✅ Clean API - Fluent, modern PHP interface
✅ Exception Handling - Detailed error messages
Installation
Quick Start
DB Facade + Query Builder
Patbase - PDO Abstraction
MySQL
PostgreSQL
SQLite
Prepared Statements
Lazy Loading
Supported Databases
| Database | Driver Enum | Default Port |
|---|---|---|
| MySQL / MariaDB | DatabaseDriver::MYSQL |
3306 |
| PostgreSQL | DatabaseDriver::POSTGRES |
5432 |
| SQLite | DatabaseDriver::SQL_LITE |
N/A (file) |
| SQL Server | DatabaseDriver::MS_SQL_SERVER |
1433 |
| SQL Server (Linux) | DatabaseDriver::MS_SQL_SERVER_LINUX |
1433 |
| Oracle | DatabaseDriver::ORACLE |
1521 |
| Firebird | DatabaseDriver::FIREBIRD |
3050 |
| IBM DB2 | DatabaseDriver::IBM_DB2 |
50000 |
| ODBC | DatabaseDriver::OPEN_DATABASE_CONNECTIVITY |
50000 |
Advanced Usage
Custom PDO Options
Check Connection Status
Access PDO Directly (Advanced)
License
MIT
Author
Patryk Namyslak - GitHub
AI Notice
This codebase is not written by Artificial intelligence, Only PARTS of the README were generated by Copilot but it used my documented code as reference to make it, so you can say it just turned my scattered documentation into one concise doc.