An open API service indexing awesome lists of open source software.

https://github.com/endroid/composer-message

Show an error, warning or info message on composer install
https://github.com/endroid/composer-message

Last synced: 9 months ago
JSON representation

Show an error, warning or info message on composer install

Awesome Lists containing this project

README

          

# Composer Message

*By [endroid](https://endroid.nl/)*

[![Latest Stable Version](http://img.shields.io/packagist/v/endroid/composer-message.svg)](https://packagist.org/packages/endroid/composer-message)
[![Build Status](https://github.com/endroid/composer-message/workflows/CI/badge.svg)](https://github.com/endroid/composer-message/actions)
[![Total Downloads](http://img.shields.io/packagist/dt/endroid/composer-message.svg)](https://packagist.org/packages/endroid/composer-message)
[![Monthly Downloads](http://img.shields.io/packagist/dm/endroid/composer-message.svg)](https://packagist.org/packages/endroid/composer-message)
[![License](http://img.shields.io/packagist/l/endroid/composer-message.svg)](https://packagist.org/packages/endroid/composer-message)

## Installation

``` bash
$ composer require endroid/composer-message
```

## Usage

Define the messages inside your composer.json like this.

```
"extra": {
"endroid": {
"message": [
{ "content": "This is an error message", "type": "error" },
{ "content": "This is a warning message", "type": "warning" },
{ "content": "This is an info message", "type": "info" }
]
}
}
```

This will generate the following console output during installation.

![Composer Message Output](composer_message_output.png)

## Versioning

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible
changes will be kept to a minimum but be aware that these can occur. Lock
your dependencies for production and test your code when upgrading.

## License

This bundle is under the MIT license. For the full copyright and license
information please view the LICENSE file that was distributed with this source code.