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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

Two LIKYLY recommendation blocks on a product page:

Laravel 12 and 13, PHP 8.2 or later. Built on the LIKYLY PHP SDK.

What likyly:install does

  1. Writes your keys to .env: LIKYLY_KEY (public, pk_...), and LIKYLY_SECRET_KEY (secret, sk_...) to send the catalog.
  2. Publishes config/likyly.php.
  3. Finds your product model (App\Models\Product...), adds the Recommendable trait to it and lists it in the config.
  4. Sends your whole catalog to LIKYLY.
  5. 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

PHP Build Version
Package Version
Requires php Version ^8.2
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package likyly/laravel contains the following files

Loading the files please wait ...