Download the PHP package mmic/platform-cache-scrubber without Composer

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

Cache Scrubber Extension for Cartalyst Platform

Modern frameworks utilize caching extensively, which can lead to unexpected behavior during routine development activities.

Laravel includes an Artisan command that clears the "application cache", but there are several other caches, some of which are specific to Laravel, and some of which are specific to Platform, that are not cleared.

This simple extension adds a new Artisan command, cache:scrub, which empties any number of caches that are defined in the extension's configuration file.

Installation

Run the following terminal command, from within the project root:

Next, log into Platform, navigate to Operations -> Extensions, locate the Cache Scrubber extension, and click Install (at top right), and then click Enable (also at top right).

Finally, publish the configuration file:

The configuration file is published to the following location, relative to the project root:

config/mmic.cache-scrubber.paths.php

Usage

To clear all caches, simply issue the following command on the terminal, from within the project root:

Configuration

Adding a new/custom cache is as easy as editing the configuration file, config/mmic.cache-scrubber.paths.php.

All of Laravel and Platform's caches are configured to be cleared, by default:

<?php

return [

    'assets' => [

        'driver' => 'local',
        'root' => realpath(public_path('cache/assets')),

    ],

    'cache' => [

        'driver' => 'local',
        'root' => realpath(storage_path('framework/cache')),

    ],

    'sessions' => [

        'driver' => 'local',
        'root' => realpath(storage_path('framework/sessions')),

    ],

    'views' => [

        'driver' => 'local',
        'root' => realpath(storage_path('framework/views')),

    ],

];

Simply add a new element that defines the driver and filesystem path to this array, and the Cache Scrubber will empty the directory when called.

Misc. Notes

As of this writing, .gitignore and .gitkeep files are not deleted when caches are cleared. In the near future, a more robust "mask" will be added that allows for further customization in this regard.

Contributing

Feel free to submit Pull Requests!


All versions of platform-cache-scrubber with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
cartalyst/composer-installers Version ^2.0
cartalyst/support Version ^2.0
platform/foundation Version ~6.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 mmic/platform-cache-scrubber contains the following files

Loading the files please wait ....