Download the PHP package pagespeedfr/lcpimage without Composer

On this page you can find all versions of the php package pagespeedfr/lcpimage. 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 lcpimage

Pagespeedfr_Lcpimage LCP Module for Magento 2: Add preload image support on CMS pages, category pages, product pages, and custom pages with code-based selection, image resizing, 2x support, and compatibility with both Yireo_Webp2 and Amasty Image Optimizer.

โœ… Compatible with Hyvรค

Recommendation For optimal Google PageSpeed results and full compatibility with this module, I recommend the free plugin: ๐Ÿ‘‰ Yireo_Webp2

Features When enabled, the module:

Adds tags for LCP images.

Default Behavior

By default, the module automatically adds a preload link on:

Product pages โ†’ preloads the first main product image.

Category pages โ†’ preloads the first image in the product listing.

For Other page -> Allows you to choose which image to preload for each controller. Example:

image (cms_index_index,//main[@id="maincontent"]//picture/source,srcset ->here take the first picture on home page of maincontent)

Supports cases where you have separate images for desktop and mobile, for example on the catalog_category_view layout.

image

In such cases, you can define a selector like : catalog_category_view,//div[@class="top-container"]//picture/source2,srcset

The module :

๐Ÿ›  INSTALLATION

Manual Installation

Download and unzip the module in: app/code/Pagespeedfr/Lcpimage/ (Create folders if they don't exist)

With composer : composer require pagespeedfr/lcpimage

Then php bin/magento s:up php bin/magento setup:db-declaration:generate-whitelist --module-name=Pagespeedfr_Lcpimage

After go to admin > stores > configuration > PAGESPEEDFR > lcpimage and enable it you can add the demo test on homepage for resize banner image webp on module directory : Pagespeedfr/Lcpimage/view/frontend/layout/cms_index_index.xml and uncomment the block with name test_lcp_image

๐Ÿ”„ Updates For updates, please open an issue on the repository.

OSL-3.0 Licence


All versions of lcpimage with dependencies

PHP Build Version
Package Version
No informations.
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 pagespeedfr/lcpimage contains the following files

Loading the files please wait ...