Download the PHP package webfixit/cachehostsmanager without Composer

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

Magento2 cache hosts Manager

Allows to manage your cache hosts via the CLI. You can add for instance Varnish servers and remove them again in the configuration.

Status

I believe this package is stable. Yet I want to warn you about using it in production:

When you are in need of a tool like this, I assume you have somewhat decent knowledge the make the right calls ;)

Why

Because the default CLI setting (config:set --http-cache-hosts) is not usefull. The config:set commands overrides all your hosts. Imagine a dynamic setup where you add a new server. The configuration (env.php) is shared via a NFS (or whatever volume). You must know all hosts if you want to add your new host.

With this manager you can simply do bin/magento cachehosts:add {currenthost} and it will append the server, rather than overriding all your servers

About me

I'm a DevOps engineer for a full service digital agency in the Netherlands. When possible I try to create opensource scripts / extentions and tools. If you appriciate my work, please be so kind to donate so I can keep drinking beer.

paypal

How the CLI works

There are 2 commands:

bin/magento cachehosts:add

bin/magento cachehosts:remove

Arguments are the host(s), comma seperated

CLI Usage

Add

Remove

Mixing up

It is ok to have the same host on different ports.

Install with Composer


All versions of cachehostsmanager 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 webfixit/cachehostsmanager contains the following files

Loading the files please wait ...