Download the PHP package kodhe/driver without Composer
On this page you can find all versions of the php package kodhe/driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package driver
Kodhe Driver Library - PSR-4 Compatible Driver System for CodeIgniter 3
Refactored modular driver library system for CodeIgniter 3 dengan PSR-4 autoloading dan design patterns modern.
๐ Struktur
โจ Fitur
- PSR-4 Autoloading - Namespace
Kodhe\Driver\ - PSR-12 Coding Standards - Clean code style
- Design Patterns:
- Registry Pattern (instance caching)
- Factory Pattern (driver instantiation)
- Proxy/Delegation Pattern (magic methods)
- Template Method Pattern (abstract driver)
- Null Object Pattern (fallback driver)
- Dependency Injection - Resolver dan registry di-inject via constructor
- Performance Optimized:
- Path caching untuk file lookup
- Instance caching per request
- Lazy loading drivers
- 100% Backward Compatible - API CI3 tetap berfungsi
๐ง Instalasi
Atau tambahkan ke composer.json:
๐ Penggunaan
Membuat Library Multi-Driver
Membuat Driver
Menggunakan di Controller
๐ฏ Design Patterns
Registry Pattern
Null Object Pattern
Dependency Injection
๐งช Testing
๐ Perbandingan
| Area | Sebelum (CI3 Native) | Sesudah (Kodhe\Driver) |
|---|---|---|
| Struktur | 2 classes monolithic | Modular (8+ components) |
| Namespace | None | PSR-4 Kodhe\Driver\ |
| Testing | Sulit (hardcoded paths) | Mudah (DI + interfaces) |
| Caching | Manual per library | Built-in registry |
| Extension | Sulit | Mudah (implement interface) |
| PSR Compliance | None | PSR-4, PSR-12 |
๐ Backward Compatibility
Semua fitur CI3 Driver system tetap berfungsi:
- โ
extends CI_Driver_Libraryโextends DriverLibrary - โ
extends CI_Driverโextends AbstractDriver - โ
$this->lib->driver_name->method() - โ
$this->parent->method()dari dalam driver - โ
Property
valid_driversdanlib_name - โ
Magic methods
__get,__call
Class aliases tersedia untuk backward compatibility penuh:
๐ License
MIT License - lihat LICENSE untuk detail.
All versions of driver with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package kodhe/driver contains the following files
Loading the files please wait ...