Download the PHP package likyly/laravel without Composer
On this page you can find all versions of the php package likyly/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download likyly/laravel
More information about likyly/laravel
Files in likyly/laravel
Package laravel
Short Description LIKYLY product recommendations for Laravel: your Eloquent catalog synced, a Blade component, impressions and clicks tracked, set up with one artisan command.
License MIT
Homepage https://www.likyly.com/docs/sdk/laravel
Informations about the package laravel
LIKYLY for Laravel
Product recommendations in a Laravel app ("You may also like", "Trending now", "Frequently bought together"), learned from what your visitors do. Your Eloquent catalog stays in sync by itself, a Blade component shows the blocks, and impressions and clicks are tracked for you.

Laravel 12 and 13, PHP 8.2 or later. Built on the LIKYLY PHP SDK.
What likyly:install does
- Writes your keys to
.env:LIKYLY_KEY(public,pk_...), andLIKYLY_SECRET_KEY(secret,sk_...) to send the catalog. - Publishes
config/likyly.php. - Finds your product model (
App\Models\Product...), adds theRecommendabletrait to it and lists it in the config. - Sends your whole catalog to LIKYLY.
- Prints the Blade lines to paste.
Non-interactive (CI, scripts): php artisan likyly:install --key=pk_... --secret=sk_... --model=Product --no-interaction.
Show a block
A placement (pdp-similar, home-trending...) is configured once in LIKYLY, by your coding assistant
through the LIKYLY MCP server or in the console: strategy, fallback, filters, how many items.
The component asks LIKYLY for the items, renders them from your own models (name, picture, link),
records the impressions, and sends clicks through /likyly/click before redirecting to the product.
An item that is no longer in your database is never shown. When LIKYLY has nothing or does not answer
within likyly.timeout, the block renders nothing and the page is unaffected.
Restyle it: php artisan vendor:publish --tag=likyly-views. Every item carries
data-likyly-item-id, the list data-likyly-placement.
Your catalog
Every create, update and delete of a Recommendable model goes to LIKYLY. With LIKYLY_QUEUE=true it
goes through your queue instead of during the request. A LIKYLY outage never makes a save fail: it is
logged.
What LIKYLY receives is guessed from common column names (name/title, description, category,
brand, price, image...). To choose, override toLikylyItem():
Also available: likylyImage(), likylyId(), and shouldSyncToLikyly() to leave drafts out.
Events
Anonymous visitors get an id in a first-party cookie (likyly_sid, one year) from a middleware the
package adds to the web group. Logged-in users are sent with their id too.
Commands
| Command | |
|---|---|
php artisan likyly:install |
keys, config, product model, first sync |
php artisan likyly:sync |
send the whole catalog again |
php artisan likyly:status |
check keys, API, catalog and blocks, and say what to fix |
php artisan likyly:uninstall |
remove the trait, the config and the keys (your LIKYLY account is not touched) |
Configuration
config/likyly.php: key, secret, catalog (when your account has several catalogs), base_url,
models, queue, timeout (default 3 s), cookie, click_path.
License
MIT
All versions of laravel with dependencies
illuminate/console Version ^12.0 || ^13.0
illuminate/database Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0
illuminate/view Version ^12.0 || ^13.0
likyly/sdk Version ^1.0.2
symfony/process Version ^7.0 || ^8.0