contributte/neonizer

v0.1 2017-10-18 12:17 UTC

README

Interactive parameters (NEON/JSON) handling during composer install / update.

Build Status Code coverage Licence

Downloads this Month Downloads total Latest stable

Discussion / Help

Join the chat

Versions

State Version Branch PHP
stable ^0.1 master >= 5.6

Sample

Neonizer

Install

Install via composer

composer require contributte/neonizer

Add post-install and post-update script to composer.json

"scripts": {
  "post-install-cmd": [
    "Contributte\\Neonizer\\NeonizerExtension::process"
  ],
  "post-update-cmd": [
    "Contributte\\Neonizer\\NeonizerExtension::process"
  ]
}

Usage

Add extra.neonizer section to your composer.json

"extra": {
  "neonizer": {
    "files": [
      {
        "dist-file": "app/config/config.local.neon.dist"
      },
      {
        "dist-file": "app/config/config.local.neon.dist",
        "file": "app/config/config.local.json"
      }
    ]
  }
}

You can define:

  • dist-file - Resource/template file for parameters handling.
  • file - Destination/result file.

Maintainers

538058?v=3&s=150
Milan Felix Šulc
6731626?v=3&s=150
Josef Benjač

Thank you for testing, reporting and contributing.