Download the PHP package druidfi/omen without Composer

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

druidfi/omen

Tests

Drupal ENV detector. Detects env related configuration and sets them for you. Helps with moving sites from environment to another. Aims also to generalize your env configuration.

Also sets configuration per environment type. e.g. for development or production. Everything can still be overridden in your project.

You should just focus on your project specific configuration.

How to use

Require omen in your composer.json:

And then use this as your sites/default/settings.php:

Or print out all configuration (aka debug):

See the whole example here.

Known environments

What is detected?

APP_ENV

With APP_ENV you can force a running configuration. E.g. you can run with test configuration on dev environment. This means that e.g. the database credentials do not change but caching settings do change.

Values: dev, test or prod (default: prod)

Drupal configuration mapping

Drupal configuration can be overridden using ENV variables.

Variable ENV override Default value
$databases['default']['default']['database'] DRUPAL_DB_NAME :heavy_multiplication_x:
$databases['default']['default']['driver'] DRUPAL_DB_DRIVER 'mysql'
$databases['default']['default']['host'] DRUPAL_DB_HOST :heavy_multiplication_x:
$databases['default']['default']['password'] DRUPAL_DB_PASS :heavy_multiplication_x:
$databases['default']['default']['port'] DRUPAL_DB_PORT 3306
$databases['default']['default']['username'] DRUPAL_DB_USER :heavy_multiplication_x:
$settings['config_sync_directory'] DRUPAL_CONFIG_SYNC_DIRECTORY 'conf/cmi'
$settings['file_public_path'] DRUPAL_FILE_PUBLIC_PATH 'sites/default/files'
$settings['file_private_path'] DRUPAL_FILE_PRIVATE_PATH FALSE
$settings['file_temp_path'] DRUPAL_FILE_TEMP_PATH '/tmp'
$settings['hash_salt'] DRUPAL_HASH_SALT '0000000000000000'

:heavy_multiplication_x: Detected or required

Defaults for environment types

See src/Defaults.php for values.

See current default values by environment:

Variable Development Testing Production
$config['system.logging']['error_level'] 'all' 'hide' 'hide'
$config['system.performance']['cache']['page']['max_age'] 0 900 900
$config['system.performance']['css']['preprocess'] 0 1 1
$config['system.performance']['js']['preprocess'] 0 1 1
$settings['skip_permissions_hardening'] TRUE FALSE FALSE

Same for all environments:

TODO

Add support for:

Where the name "Omen" comes from?

Druids interpreted the waves of the ocean or read clouds for mundane or important omens. So reading clouds is basically what druidfi/omen is doing. Your local clouds too.

Other information

This project can be found from the Packagist: https://packagist.org/packages/druidfi/omen


All versions of omen with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
drupal/core-recommended Version ^10.0 || ^11.0
ext-json Version *
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 druidfi/omen contains the following files

Loading the files please wait ....