Download the PHP package webmaesther/configuru without Composer

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

webmaesther/configuru

Build status

About Configuru

Sometimes you tweak a configuration file just a little bit, everything seems to be working, but after a couple weeks or months, an annoying bug appears in the system, and you debug for hours only to find the reason of it is that you didn't edit the same configuration in another file.

If you ever ran into this issue then Configuru is just for you! With this tool, you can easily rebuild your configuration files from one single source of truth.

Installation

If you are using composer, you can easily install Configuru for your project.

It is recommended that you only require this package for development, since this is intended to be a build tool.

Or if you wish, you can always install it globally.

Getting Started

Add configuru.yml

Add a configuru.yml file to your root, containing all the key-value pairs to replace.

Add .guru files

For each file you wish to replace, add a guru file in the same folder. For example, if you wish to build your config.yml file, add a config.guru.yml file to your project and use :(key) in the guru file as a placeholder for the value you configured in configuru.yml.

Build with configuru

This command will look for all the guru files in your project folders recursively and replace the configured keys with the values and save them to a file with the same filename, but without the .guru extension.

Configuru will overwrite any file it encounters!

Advanced Usage

Escape keys

If you have text in your files in the format :(key), but you don't wish to replace it, just add a backslash before the colon to escape that key, like this: \:(key). It will be replaced with the string :(key) without the backslash.

Build path

By default, Configuru will build every guru file it can find within the current working directory. You can specify a different path as the first argument of the command.

All file types

Notice that Configuru will build any text file, not just the typical config file extensions (yaml, php, json) but any text file you want as long as the filename contains .guru, it will use that file to build the same file without .guru in the filename.

Flexible guru file names

Actually, you can place the .guru extension anywhere in the filename. For example .guru.config.yml will build .config.yml. But .guruconfig.yml won't build config.yml

Examples

You can find some examples in the example folder. It contains the guru files as well as the built result.


All versions of configuru with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
symfony/console Version ^3.2
symfony/yaml Version ^3.2
symfony/finder Version ^3.2
league/container Version ^2.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 webmaesther/configuru contains the following files

Loading the files please wait ...