amranidev/laracombee
Laravel package for the Recombee recommendation API. Manage users, items, and interactions, and fetch personalized recommendations with a Laravel-friendly interface—ideal for e-commerce, media libraries, and marketplaces. Compatible with Laravel 10–12, PHP 8.2+.
## Getting Started
Install via Composer:
```bash
composer require vendor/package-name
The package now officially supports Laravel 10/11/12, so no additional configuration is required for modern Laravel versions. Start by reviewing the rewritten README for updated setup instructions and basic usage examples.
For testing, leverage the offline fake-based test coverage to mock dependencies without external services. Example:
use Vendor\Package\Facades\PackageFacade;
$mock = PackageFacade::fake();
$mock->shouldReturn('test-value');
$this->app->bind('vendor.package', function ($app) {
return new Vendor\Package\Services\CoreService();
});
$result = PackageFacade::performAction($input);
use Tests\TestCase;
class PackageTest extends TestCase {
public function test_fake_coverage() {
PackageFacade::fake();
$this->assertEquals('test-value', PackageFacade::performAction());
}
}
app()->bind() or app()->tag() for service tagging if using Laravel 12's improved container.assertFake() to verify fake interactions:
PackageFacade::assertFakeCalled('performAction');
app()->when() bindings instead of singleton() (Laravel 12's preferred method).class CustomFake extends PackageFacadeFake {
public function customMethod() { ... }
}
AppServiceProvider:
public function register() {
$this->app->extend('vendor.package', function () {
return new CustomService();
});
}
NO_UPDATE_NEEDED would **not** apply here due to the significant changes in v0.3.1.
How can I help you explore Laravel packages today?