Download the PHP package hurtcode/configure-yaml without Composer

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

Config YAML


This library is YAML implementation of config library. It uses yaml file format to take care of application configurations.

List of abilities of library:

Usage example:

Create configuration files. All files locates in one configuration directory.

Than create configurator class with config resources and Yaml compiler.

As result we recieves one php array with configurations


Library work description

This labrary is baseed on Symfony's YAML and Yaml tags. All tags do specific logic, like creating configuration variables or string concatanating. Tag functionality is depends on two interfaces TagProcessorFactoryInterface, that creates processor class for curtain tag and TagProcessorsMapInterface, that need to tied tag with its processor class ( it is needed only for base TagProcessorFactoryInterface - AbstractTagProcessorFactory). So if need more specific tag or another processing logic make own implementation of that interfaces

By defualt Config YAML processes next tags:

All this tags contains in tag list class

Tags and processors

Callable processor


!call

Helps to call php function in configurations. Function name takes from name kay of tag's value Also you can pass arguments, by args key

Tag rules:

Example:

Sub configuration processor


!sub

This processor compiles new configuration and returns it in place where the tag has been used. The configuration file path is relative to the path to the configuration folder

Tag rules:

Example:

Environment processor


!env

This processor takes configuration of from environment directory and compiles it like sub configuration processor. Environment directory can be passed from di container. By default environment is 'dev'.

Tag rules:

Example:

Merge tag processor


!merge

Merges tag values in one array. Uses Yiisoft/ArrayHelper.

Tag rules:

Example:

Concatenate processor


!concatenate

Concatenate processor takes list of strings and sums it in one

Tag rules:

Example:

Interpret processor


!interpret

This processor interprets incoming expression as php code. Be careful with this. Incoming strings wraps by template return {value}; and sends in eval function.

Tag rules:

Example:

Variable processor


!var

This processor provides ability to create global configuration variables in yaml. It has two work modes: 1) Set mode; 2) Get mode.

Tag rules:

Example:

Get processor


!get

Get processor helps to get some curtain value from another configuration or list. To use it you have to specify key ( what you want) and from (where from need to get).

Tag rules:

Example:


All versions of configure-yaml with dependencies

PHP Build Version
Package Version
Requires php Version 8.*
hurtcode/configure Version 1.*
psr/container Version 2.*|1.*
symfony/yaml Version 5.*
yiisoft/json Version 1.*
yiisoft/arrays Version ^1.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 hurtcode/configure-yaml contains the following files

Loading the files please wait ....