Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
Composer installations
  • Loading branch information
svandragt authored Jun 7, 2024
1 parent 4dd5ed4 commit 3751f43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ the page load running the scheduled event.

## Installation

Just install the plugin like any other plugin. Installation as a MU plugin is supported as well, and via composer:
Just install the plugin like any other plugin. Installation as a MU plugin is supported as well, and via composer

```shell

composer config repositories.hm-expiry-cache vcs git@github.com:humanmade/hm-expiry-cache.git
composer require humanmade/hm-expiry-cache:dev-main --no-update
composer update humanmade/hm-expiry-cache --prefer-source
```

These commands configure Composer to use a custom Git repository for the `hm-expiry-cache` package, add this package as a requirement without immediately installing it, and finally update and install the package from the source repository.

## Usage

All that is needed is for you to create a callback function that will be called with `$callback_args` as the first
Expand Down

0 comments on commit 3751f43

Please sign in to comment.