Download the PHP package benconstable/quick-configure without Composer

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

QuickConfigure

Build Status Latest Stable Version Latest Unstable Version Dependency Status

QuickConfigure makes the tedious process of setting configuration options in your builds quick and easy (for you and the people using your code!).

Why?

Often frameworks or libraries require you to specify some basic config to get started. This could be setting database details for example, or setting the base URL for an application.

Usually, this involves either modifying a config file that's under version control or manually creating a file (like Laravel's .env files). This is slow and unweildy, and makes automating builds difficult.

QuickConfigure allows you to specify a simple JSON schema from which required config can be generated. No manually creating config files, no dirty work tree, and a simple script that can be incorporated into your build process. Easy!

Installation

QuickConfigure is installed via Composer:

Basic usage

quick-configure.json

QuickConfigure generates config from a quick-configure.json file. This file has the format:

Each listed field will be configured and accessible in your app.

Generating config

Generating config is done via the configure command. Just run:

That's it!

Using config

QuickConfigure provides a simple API for accessing generated config in your application:

Advanced usage

Environments

QuickConfigure allows you easily to configure different environments from the same quick-configure.json file.

By default, config will have no environment (otherwise known as the 'global' environment). To specify an environment, just pass the --env flag to the configure command, like so:

Then, you can access the config in your application like:

Checking config

If you want to check the current config, just run:

and you can of course supply the --env flag to check environment config:

Dumping config

If you don't want to use the \QuickConfigure\Config class, you can dump config to a file to use however you'd like in your application.

For example, to generate a Laravel .env file , you can just run:

This will create a file called .env.development.php in your current directory.

Alternatively, use the --stdout option to dump the config straight to STDOUT.

Dump formats

The --format option lets you specify the format of the dumped file. Currently, QuickConfigure supports:

Further help

QuickConfigure is built on the excellent Symfony Console Component , so you can make use of the built-in help functionality to get further information about the utility:

Developing & Contributing

Please feel free to fork and contribute to this repository, but do please make sure that you:

To execute the tests, run:

I'm currently in the process of finishing off the phpspec tests - they will be done soon.

License

QuickConfigure is open-sourced software licensed under the MIT license.


All versions of quick-configure with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
symfony/console Version ~2.4
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 benconstable/quick-configure contains the following files

Loading the files please wait ....