Download the PHP package rafafortes/cache-warmer without Composer

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

Cache Warmer for Magento 2

Cache Warmer is a PHP tool designed to crawl and cache all internal URLs of a Magento 2 store to improve page load speeds by preloading content into Varnish cache.

Features

Installation

Using Composer

To install the package via Composer, run the following command:

Alternatively, add the package manually to your composer.json:

Then, run:

Usage

Once installed, you can run the script from the command line:

File-based URL Initialization

You can specify additional URLs to be crawled by creating a urls file in the root directory. This file should list one URL per line. The first URL in the file can also serve as the baseUrl if needed.

Example urls file:

Multi-threading

You can specify the number of threads to process URLs in parallel by adding the number as the last parameter.

Example with 5 threads:

If the number of threads is not specified, the default is 1 thread.

Debug Mode

You can enable debug mode by adding the --debug parameter to the command. This mode outputs all URLs found on each accessed page.

Example:

Blacklist Configuration

You can exclude specific URLs by adding patterns to a file named blacklist located in the same directory as the script. Each line of the file should contain a pattern to be ignored.

Example blacklist file:

The script will automatically load and apply the blacklist, skipping any URLs that contain the specified patterns.

Output

The script will output information about each processed URL, including:

Requirements

Configuration

Ensure your project follows the correct directory structure for autoloading:

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue to suggest improvements.

License

This project is licensed under the MIT License.

Author

Developed by Rafa Fortes.


All versions of cache-warmer with dependencies

PHP Build Version
Package Version
Requires php Version >=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 rafafortes/cache-warmer contains the following files

Loading the files please wait ....