Download the PHP package forrest79/composer-yaml-neon-plugin without Composer

On this page you can find all versions of the php package forrest79/composer-yaml-neon-plugin. 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 composer-yaml-neon-plugin

Composer Yaml Neon Plugin

Build

tl;dr

Plugin to use Composer with the config file in YAML (composer.yaml/composer.yml) or NEON (composer.neon) format instead of JSON.

Installation

This plugin must be installed globally:

It is recommended to disable use-parent-dir to omit question No composer.json in current directory, do you want to use the one at ...? where there is a config file in a YAML or NEON format and in some parent directory is a config file in JSON format.

How to use it

Prepare a config file composer.yaml/composer.yml (for the YAML format), or composer.neon (for the NEON format) instead of composer.json.

Different config file/path via environment variable COMPOSER is also supported. Don't point directly to a YAML or NEON config file, always point to the (virtual) JSON config file and let plugin detect correct config file.

For example YAML format:

or NEON format:

IMPORTANT: You can use only one config file in a directory.

Generate composer.json

To generate classic composer.json file, use composer generate-composer-json command.

How does it work?

Simply! If plugin detects YAML or NEON config file at the startup, it will generate composer.json and at the end is JSON file cleaned. That's the magic.

When composer.json is changed by Composer (i.e., after composer require command etc.), the new config file in YAML or NEON format is saved next to the original one, and you must make manual diff and merge.


All versions of composer-yaml-neon-plugin with dependencies

PHP Build Version
Package Version
Requires composer-plugin-api Version ^2.6
nette/neon Version ^3.4
php Version ^8.2
symfony/yaml Version ^7.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 forrest79/composer-yaml-neon-plugin contains the following files

Loading the files please wait ....