Installation Add the package via Composer:
composer require 2lenet/bi-bundle
Publish the configuration (if available):
php artisan vendor:publish --provider="2lenet\BiBundle\BiBundleServiceProvider"
First Use Case The package appears to be a "Bi Bundle" (likely a Business Intelligence or Bimodal Integration toolkit). Start by checking:
config/bi-bundle.php (if published) for default settings.BiBundleServiceProvider to see registered services, aliases, or facade bindings.routes/bi.php (if auto-loaded) for API/web routes.Quick Test
If the package includes a facade (e.g., BiBundle), test basic functionality:
use BiBundle;
$result = BiBundle::someMethod(); // Replace with actual method
Data Integration
$report = BiBundle::generateReport(['filter' => 'active']);
Event-Driven Extensions
bi.* events (if documented) to hook into workflows:
BiBundle::listen('report.generated', function ($report) {
// Post-processing logic
});
Configuration-Driven Features
config(['bi-bundle.enabled_features' => ['reports', 'exports']]);
require('bi-bundle/js/bi-dashboard');
$this->app->bind('BiBundle\Contracts\ReportGenerator', function () {
return new CustomReportGenerator();
});
Undocumented Features
BiBundleServiceProvider for registered services to avoid "method not found" errors.Configuration Quirks
config/bi-bundle.php lacks defaults, merge manually:
$config = require __DIR__.'/vendor/2lenet/bi-bundle/config/bi-bundle.php';
config($config);
Namespace Collisions
BiBundle as a facade/class name. Ensure no conflicts with your app’s BiBundle classes.config(['bi-bundle.debug' => true]); // If supported
\Log::debug('BiBundle output:', BiBundle::someMethod());
BiBundleServiceProvider::macro('customMethod', function () {
// ...
});
php artisan vendor:publish --tag=bi-views
$this->app->instance('BiBundle\Contracts\ReportGenerator', MockReportGenerator::class);
How can I help you explore Laravel packages today?