All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Full Laravel Support — Package now works seamlessly with Laravel 8+ applications
- Dependency Injection — Client now accepts optional injected HTTP client for testability
- Laravel Service Provider — Auto-discoverable ServiceProvider with container bindings
- Publishable Config — Laravel apps can publish
config/simba.phpviaphp artisan vendor:publish - SmartClient Fallbacks — Client uses: injected client → Laravel Http facade → CodeIgniter Services
- Enhanced SimbaManager — Resolves libraries from container when in Laravel, falls back to static methods
- Updated Documentation — README with Laravel quick-start guide and setup instructions
- Client Constructor — Now accepts optional
$httpClientparameter (backward compatible) - Library Constructors — All libraries (Muzakki, Mustahik, Pengumpulan, Upz) accept optional
$httpClient - Composer Autoload — Added Laravel autodiscovery entries and helper shims
- README — Added Laravel section with installation and usage examples
- Better testability with injectable dependencies
- Framework-agnostic HTTP client handling
- More flexible service container integration
- CI helper dependencies reduced via shims
- Type safety improvements across libraries
- ✅ PHPUnit: All tests passing
- ✅ Syntax: All files validated with
php -l - ✅ Backward Compatibility: Existing CodeIgniter code works unchanged
- ✅ Laravel Integration: Verified with container resolution and facade
- SIMBA API library for CodeIgniter 4
- Core libraries: Muzakki, Mustahik, Pengumpulan, Penyaluran, Upz
- Response formatter and validation traits
- Database migrations and seeders
- Comprehensive documentation
use simba\api\Libraries\Muzakki;
$muzakki = new Muzakki();
$response = $muzakki->registerDariLokal(1, $data);// Via container
$muzakki = app('simba')->muzakki();
// Via Facade
$muzakki = \Simba::muzakki();No breaking changes! All existing code continues to work. To leverage new Laravel features:
-
Install and publish config:
composer require simba/api:^2.1 php artisan vendor:publish --provider="simba\api\Laravel\SimbaServiceProvider" -
Update
.env:SIMBA_BASE_URL=https://demo-simba.baznas.or.id/ SIMBA_ORG_CODE=your_org_code SIMBA_API_KEY=your_api_key SIMBA_ADMIN_EMAIL=admin@example.com
-
Start using in Laravel controllers:
$muzakki = app('simba')->muzakki();