Download the PHP package ama-team/yamligniter without Composer

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

YamlIgniter

This repository contains a simple tool to boot CodeIgniter projects with YAML config.

Motivation

There are two types of configuration: declarative and executed (so it's basically a big function that somehow provides configuration to application, either via return or side-effects). While executed configuration (which is used by CodeIgniter) gives infinite freedom to end user (you can compute values on-the-fly), it lacks the ability of easy machine processing that declarative configuration has, and limits your freedom in automation. Declarative configuration, such as YAML files, is static, but can be easily created by a script using any language, and gives huge benefit for automating things like continuous deployments and automated environment creation (for feature branches, for example).

Because we had some troubles deploying our CodeIgniter projects from scratch, i decided to help CodeIgniter to switch to YAML for configuration.

Installation

Just the usual thing:

Usage

CodeIgniter takes it's config by letting user to fill some variables in user-maintained scripts. Let's exploit that:

You can now also use environment-based configuration files:

YamlIgniter will take your configuration, fill the missing gaps with default values, and then return full config to you for future processing or extraction into local variables.

Formals

Static methods YamlIgniter::database() and YamlIgniter::config() are just wrappers around similar non-static methods: they've been implemented solely for simplified access. Their implementation differ a little - ::config() simply reads YAML file, fills all gaps with default values and returns in an array under config key:

Database method acts differently. The source config file should represent database.php structure:

YamlIgniter then takes this input and transforms as described:

So above example would result in:

Testing

Testing is done via Codeception framework alongside with Allure Framework for reporting. Launching tests is easy:

To get full-blown reporting, install Allure commandline and use following command:

Contributing

Fork, fix, enhance, create pull request, ping maintainers if there's no reaction.

Self-esteem badge cellar

Master branch

CircleCI/master Coveralls/master CodeClimate Packagist Packagist

Dev branch

CircleCI/dev Coveralls/dev


All versions of yamligniter with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version ^3.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 ama-team/yamligniter contains the following files

Loading the files please wait ....