{"id":43473119,"url":"https://github.com/jbaron-mx/laravel-recombee","last_synced_at":"2026-02-03T07:19:32.278Z","repository":{"id":45175917,"uuid":"511580214","full_name":"jbaron-mx/laravel-recombee","owner":"jbaron-mx","description":"An expressive fluent API wrapper around Recombee's SDK to use within Laravel applications","archived":false,"fork":false,"pushed_at":"2025-10-13T15:29:07.000Z","size":160,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T14:42:19.231Z","etag":null,"topics":["laravel","php","recombee","recommendation-system","recommender"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbaron-mx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-07T15:25:39.000Z","updated_at":"2025-09-25T02:35:51.000Z","dependencies_parsed_at":"2024-02-02T18:26:41.159Z","dependency_job_id":"e94f36e3-b1a0-438d-89d4-acde6adcaa43","html_url":"https://github.com/jbaron-mx/laravel-recombee","commit_stats":{"total_commits":71,"total_committers":3,"mean_commits":"23.666666666666668","dds":"0.11267605633802813","last_synced_commit":"08b1d24713103a0885adcda04c3e51fb65778010"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jbaron-mx/laravel-recombee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbaron-mx%2Flaravel-recombee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbaron-mx%2Flaravel-recombee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbaron-mx%2Flaravel-recombee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbaron-mx%2Flaravel-recombee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbaron-mx","download_url":"https://codeload.github.com/jbaron-mx/laravel-recombee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbaron-mx%2Flaravel-recombee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29037166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","php","recombee","recommendation-system","recommender"],"created_at":"2026-02-03T07:19:31.796Z","updated_at":"2026-02-03T07:19:32.273Z","avatar_url":"https://github.com/jbaron-mx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://banners.beyondco.de/Laravel%20Recombee.png?theme=light\u0026packageManager=composer+require\u0026packageName=jbaron-mx%2Flaravel-recombee\u0026pattern=architect\u0026style=style_1\u0026description=Seamless+integration+of+AI-powered+recommendations\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg)\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://packagist.org/packages/jbaron-mx/laravel-recombee\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/jbaron-mx/laravel-recombee.svg?style=flat-square\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/jbaron-mx/laravel-recombee/actions/workflows/run-tests.yml?query=branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/jbaron-mx/laravel-recombee/run-tests.yml?label=tests\u0026branch=main\" alt=\"GitHub Tests Action Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/jbaron-mx/laravel-recombee/actions/workflows/php-cs-fixer.yml?query=branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/jbaron-mx/laravel-recombee/php-cs-fixer.yml?label=code%20style\u0026branch=main\" alt=\"GitHub Code Style Action Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/jbaron-mx/laravel-recombee\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/jbaron-mx/laravel-recombee.svg?style=flat-square\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n------\n\n[Recombee](https://www.recombee.com/) is an **AI-powered recommendation engine** that delivers amazing user experiences with recommendations based on users' behavior and interests.\n\nThis package is a [Recombee PHP SDK](https://github.com/Recombee/php-api-client) wrapper for Laravel. It provides an **expressive fluent API** to seamlessly integrate **personalized recommendations** into your application in the *Laravel way*. Heavily inspired in [Laravel Scout](https://github.com/laravel/scout/).\n\n---\n\n## Supports\n\n* **PHP:** 8.0, 8.1, 8.2, 8.3, 8.4, 8.5\n* **Laravel:** 8, 9, 10, 11, 12\n\n## Prerequisites\n\n1. Create an account in [Recombee](https://www.recombee.com/).\n2. Create a database within your account.\n\n## Installation \u0026 Setup\n\nInstall with Composer:\n```sh\ncomposer require jbaron-mx/laravel-recombee\n```\n\nPublish config file:\n```sh\nphp artisan vendor:publish --tag=\"recombee-config\"\n```\n\nAdd to your `.env` file:\n\u003e Replace the values with your database details from Recombee.\n```env\nRECOMBEE_DATABASE=\"my-store\"\nRECOMBEE_TOKEN=\"token\"\nRECOMBEE_REGION=\"us-west\"\n```\n\nAdd your corresponding models to your `config/recombee.php`:\n```php\n'user' =\u003e App\\Models\\User::class,\n'item' =\u003e App\\Models\\Product::class,\n```\n\nAdd `Recommendable` trait to your corresponding models:\n```php\nuse Baron\\Recombee\\Recommendable;\n\nclass User extends Authenticatable\n{\n    use Recommendable;\n    ...\n```\n```php\nuse Baron\\Recombee\\Recommendable;\n\nclass Product extends Model\n{\n    use Recommendable;\n    ...\n```\n\n## Quick Usage\n\n\u003e For full documentation please visit the [wiki](https://github.com/jbaron-mx/laravel-recombee/wiki).\n\nCreate properties in your Recombee database:\n```php\nuse Baron\\Recombee\\Facades\\Recombee;\n\n// Create a user property\nRecombee::user()\n    -\u003eproperty('active', 'boolean')    // 2nd argument is optional, string by default.\n    -\u003esave();\n\n// Create multiple user properties\nRecombee::user()-\u003eproperties([\n    'name' =\u003e 'string',\n    'age' =\u003e 'int',\n    'active' =\u003e 'boolean',\n])-\u003esave();\n\n// Create an item property\nRecombee::item()\n    -\u003eproperty('available', 'boolean')    // 2nd argument is optional, string by default.\n    -\u003esave();\n\n// Create multiple item properties\nRecombee::item()-\u003eproperties([\n    'description' =\u003e 'string',\n    'price' =\u003e 'double',\n    'available' =\u003e 'boolean',\n])-\u003esave();\n```\n\nImport users and items:\n\u003e For batch import, please visit the [Batch Import](https://github.com/jbaron-mx/laravel-recombee/wiki/3.-Batch-Import) section in the wiki.\n```php\nuse Baron\\Recombee\\Facades\\Recombee;\n\n// Import a user\nRecombee::user($userId, [\n    'name' =\u003e 'John Doe',\n    'age' =\u003e 29,\n    'active' =\u003e true,\n])-\u003esave();\n\n// Import a user via model\nUser::first()-\u003erecommendable();\n\n// Import an item\nRecombee::item($itemId, [\n    'description' =\u003e 'Magic Keyboard 3',\n    'price' =\u003e 59.99,\n    'available' =\u003e true,\n])-\u003esave();\n\n// Import an item via model\nProduct::first()-\u003erecommendable();\n```\n\nRetrieve users and items:\n\u003e get() returns an instance of `Collection` for which all its convenient methods are available, refer to [Laravel Docs for all available methods](https://laravel.com/docs/master/collections#available-methods).\n```php\nuse Baron\\Recombee\\Facades\\Recombee;\n\n// Basic get limited to 25 results by default\nRecombee::user()-\u003eget(); \nRecombee::item()-\u003eget(); \n\n// Same methods are available for users and items\nRecombee::item()\n    -\u003eselect('description', 'price', 'available')   // Select these properties only\n    -\u003etake(50)                                      // Limited to 50 results\n    -\u003eoption('filter', \"'price' \u003e 25\")              // Filtered by price\n    -\u003eget()\n```\n\nCreate interactions:\n```php\nuse Baron\\Recombee\\Facades\\Recombee;\n\n// User has viewed this item\nRecombee::user($userId)-\u003eviewed($itemId)-\u003esave();\n\n// User has purchased this item\nRecombee::user($userId)-\u003epurchased($itemId)-\u003esave();\n\n// User has rated this item (Scale from -1.0 to 1.0, see docs)\nRecombee::user($userId)-\u003erated($itemId, 0.5)-\u003esave();\n\n// User has added this item to his cart\nRecombee::user($userId)-\u003ecarted($itemId)-\u003esave();\n\n// User has bookmarked this item\nRecombee::user($userId)-\u003ebookmarked($itemId)-\u003esave();\n\n// User has partially viewed this item (Scale from 0 to 1, see docs)\nRecombee::user($userId)-\u003eviewedPortion($itemId, 0.5)-\u003esave();\n```\n\nGet personalized recomendations:\n```php\nuse Baron\\Recombee\\Facades\\Recombee;\n\n// Recommended items for a given user, typically used in a \"Picked just for you\" section.\nRecombee::user($userId)-\u003erecommendItems()-\u003etake(50)-\u003eget();\n\n// Recommended users for another given user, based on the user's past interactions and values of properties.\nRecombee::user($userId)-\u003erecommendUsers()-\u003eget();\n\n// Recommended items that are related to a given item, typically used in a \"Similar Products\" section.\nRecombee::item($itemId)-\u003erecommendItems()-\u003eget();\n\n// Recommended users that are likely to be interested in a given item.\nRecombee::item($itemId)-\u003erecommendUsers()-\u003eget();\n```\n\n## Documentation\n\nPlease visit the [wiki](https://github.com/jbaron-mx/laravel-recombee/wiki) for full documentation.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbaron-mx%2Flaravel-recombee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbaron-mx%2Flaravel-recombee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbaron-mx%2Flaravel-recombee/lists"}