Download the PHP package anax/configure without Composer

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

Anax Configure

Latest Stable Version Join the chat at https://gitter.im/canax/configure

Build Status CircleCI

Build Status Scrutinizer Code Quality Code Coverage

PHPStan Maintainability Codacy Badge

Read configuration files for Anax and Anax modules.

The configuration files for a module can be stored in one of several base directories. The Configuration class scans all valid base directories and stops at the first one containing configuration items.

The configuration items can be stored in a file, and/or in a directory containing several files. All files are loaded and combined into one array containing each bits and piece of the module configuration.

Install

Related classes

These are the classes included in this module, and their primary purpose.

Class Purpose
Configuration Read configuration files and store in array.

Use as DI service

You can create the Configuration object as a $di service. That is how Anax does it.

Sample usage

Create a object that can read configuration files.

First create the object and point it to a set of directories.

Now use the objekt to find and load configuration files for an item, in the example we are using the module "router" as an example.

The $config will now contain the configuration items found from the file, or files. You could now provide the array to the module or object that should use it.

A configuration file

A configuration file for a module "route" is any, or a combination of the following.

File/path What
route.php A file.
route/*.php Several files.

The files should return a value, which will be its contribution to the configuration.

The configuration array

The resulting configuration array looks like this, still using "route" as example for the module name.

Tha "route" module can then decide on how to use the actual configuration details.

Dependency

There are no dependencies.

License

This software carries a MIT license. See LICENSE.txt for details.


All versions of configure with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
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 anax/configure contains the following files

Loading the files please wait ....