prestashop/module-lib-cache-directory-provider

Cache directory provider to use on prestashop modules

Maintainers

👁 ps-jarvis

Package info

github.com/PrestaShopCorp/module-lib-cache-directory-provider

Type:project

pkg:composer/prestashop/module-lib-cache-directory-provider

Statistics

Installs: 185 018

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2020-09-08 14:13 UTC

Requires

  • php: >=5.6.0

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

AFL-3.0 34a577b66a7e52ae16d6f40efd1db17290bad453

  • PrestaShop SA <contact.woop@prestashop.com>

packagecomposermodulesprestashop

This package is auto-updated.

Last update: 2026-06-09 02:30:24 UTC


README

This repository provides the cache directory for PrestaShop modules.

Pre-requisites

You should install this library only on a PrestaShop environment and with PHP 5.6.0 minimum.

Installation

composer require prestashop/module-lib-cache-directory-provider

When this project is successfully added to your dependencies, you can add the new CacheDirectoryProvider to your module and use it.

Usage

To use this library, it's simple :

 $cacheDirectoryProvider = new CacheDirectoryProvider(
 _PS_VERSION_,
 _PS_ROOT_DIR_,
 _PS_MODE_DEV_
 );

With the getPath() function, you will retrieve the cache path of your module :

 $cacheDirectoryProvider->getPath();