Download the PHP package arhframe/yamlarh without Composer

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

Yamlarh

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

Yamlarh is now just a name, with this tool you can inject complex data or other formatted files in a formatted file (as json, xml or yaml).

You can inject into your formatted file:

You can also import other formatted file inside a formatted file file for overriding

Installation

Through Composer, obviously:

Usage

Exemple

Variable injection

Variable injection is hierarchical, it will find in this order:

  1. In the yaml file with import
  2. In your global scope
  3. In your constants
  4. In accessible variables set in yamlarh

Yaml file:

Or in xml:

Or in json:

Php file:

Output:

Object injection

It use snakeyml (yaml parser for java) style:

Import

Import are also hierarchical the last one imported will override the others.

Use yar-import by default in your file:

file1.xml

file2.yml

After parsing file1.xml, output will look like (just to have a better format it's show yml):

Include

You can include a yaml file into another:

file1.yml

file2.yml

After parsing file1.yml, output will look like:

Note: You can look at these tests to know what you can also do.

Extensible

Add a node

After parsing and importing but before injecting yamlarh can run your extension.

You have to create a new class which extends Arhframe\Yamlarh\YamlarhNode and add it to your yamlarh instance like this:

Now you can use (for this example) yar-myNodeName in your formated file.

Note: the yar-include is a node take look at IncludeYamlarhNode to have a good example.


All versions of yamlarh with dependencies

PHP Build Version
Package Version
Requires symfony/yaml Version 2.*
arhframe/util Version ~1.3
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 arhframe/yamlarh contains the following files

Loading the files please wait ....