Download the PHP package lamoda/multi-env without Composer

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

Lamoda multi-env

Build Status Scrutinizer Code Quality Code Coverage Build Status

Library that provides classes to work with envs in multitenant environment

Library based on params passed to it on initialization stage will decide which env variable should be used for current request.

Installation

  1. Install library with composer:

Usage

Library usage examples to work in not multitenant environment (could be useful in development mode)

Library usage examples to work in multitenant environment

Library set up by build in factory

  1. Library set up for work with env in file stored in different directories

  2. Library set up for work with env with prefixes

Library set up with multiple strategy

Available HostDetectorInterface implementations

  1. \Lamoda\MultiEnv\HostDetector\ServerHeadersBasedHostDetector - use to identificate host via HTTP request

  2. \Lamoda\MultiEnv\HostDetector\CliArgsBasedHostDetector - use to identificate host via Cli script run

  3. \Lamoda\MultiEnv\HostDetector\FirstSuccessfulHostDetector - use to aggregate multiple HostDetector's

Available FormatterInterface implementations

  1. \Lamoda\MultiEnv\Formatter\PrefixAppendFormatter - append prefix and delimiter to original string. Combine original string, delimiter,host id in order *host id*, *delimiter*, *original string*

  2. \Lamoda\MultiEnv\Formatter\SuffixAppendFormatter - append suffix and delimiter to original string. Combine original string, delimiter,host id in order *original string*, *delimiter*, *host id*

  3. \Lamoda\MultiEnv\Formatter\CharReplaceFormatter - act like strreplace in PHP. Could be useful to replace illegal char '-' to '\\' when you access to env variable

  4. \Lamoda\MultiEnv\Formatter\FormatterPipeline - aggregate few formatters. Iterate through them and apply each to original stirng

All versions of multi-env with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ulrichsg/getopt-php Version ^4.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 lamoda/multi-env contains the following files

Loading the files please wait ....