Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rostenkowski/console

Symfony Console integration for Nette Framework
https://github.com/rostenkowski/console

integration nette-framework php7 symfony-console

Last synced: about 1 month ago
JSON representation

Symfony Console integration for Nette Framework

Awesome Lists containing this project

README

        

# Console

Latest [Symfony Console](https://symfony.com/doc/current/components/console.html) integration for [Nette Framework](https://nette.org)

[![Build Status](https://travis-ci.org/rostenkowski/console.svg?branch=master)](https://travis-ci.org/rostenkowski/console)
[![Coverage Status](https://coveralls.io/repos/github/rostenkowski/console/badge.svg)](https://coveralls.io/github/rostenkowski/console)
[![Code Climate](https://codeclimate.com/github/rostenkowski/console/badges/gpa.svg)](https://codeclimate.com/github/rostenkowski/console)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rostenkowski/console/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rostenkowski/console/?branch=master)

## Installation

```bash
composer require rostenkowski/console
```

## Usage

Register extension in `config.neon`.
```yaml
extensions:
console: Rostenkowski\Console\Extension
```

List your command in the `console.commands` configuration section.
```yaml
console:
commands:
foo: MyNamespace\FooCommand
```

Alternatively you can add your command as a service.
```yaml
services:
fooCommand: MyNamespace\FooCommand
```