PHPackages                             theaentmachine/aent-console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. theaentmachine/aent-console

ActiveLibrary[CLI &amp; Console](/categories/cli)

theaentmachine/aent-console
===========================

A utility PHP package to create aents using Symfony console.

11.6k3PHP

Since Nov 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/theaentmachine/aent-console)[ Packagist](https://packagist.org/packages/theaentmachine/aent-console)[ RSS](/packages/theaentmachine-aent-console/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

aent-console
============

[](#aent-console)

A utility PHP package to create Aents using the Symfony console.

 [ ![Travis CI](https://camo.githubusercontent.com/9b20802fae8f704bcbafd28f3a2f03c9084a9c7e43beea148820c1df7ec63ceb/68747470733a2f2f7472617669732d63692e6f72672f74686561656e746d616368696e652f61656e742d636f6e736f6c652e7376673f6272616e63683d6d6173746572) ](https://travis-ci.org/theaentmachine/aent-console) [ ![Scrutinizer](https://camo.githubusercontent.com/86873e62b20b189b6855f2a01eb41363c76405c75f3b07eab1c01aee28ffda0e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74686561656e746d616368696e652f61656e742d636f6e736f6c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572) ](https://scrutinizer-ci.com/g/theaentmachine/aent-console/?branch=master) [ ![Codecov](https://camo.githubusercontent.com/0fc90a521f912b3226f8c4e31441a0aaf699f3f0d97ece821b0d87feda8877f8/68747470733a2f2f636f6465636f762e696f2f67682f74686561656e746d616368696e652f61656e742d636f6e736f6c652f6272616e63682f6d61737465722f67726170682f62616467652e737667) ](https://codecov.io/gh/theaentmachine/aent-console/branch/master)

---

Why do I need this?
-------------------

[](#why-do-i-need-this)

This package contains a set of classes that extend Symfony console classes to help you get started building an Aent.

Docker Aents must contain a "aent" program that accepts in argument events triggered by other aents.

```
$ aent event-name payload

```

When writing a command line application in PHP, it is fairly common to use [Symfony console](https://symfony.com/doc/current/components/console.html).

However, Aents have some peculiarities that do not fit with the Symfony console:

- If an event is not found, the aent must not return an error code. In Symfony console, if the first argument is not a known command, an error is raised
- Aents are configured using the PHEROMONE\_LOG\_LEVEL environment variable. Symfony console log level is configured using the "-vvv" option.

Usage
-----

[](#usage)

A typical Aent will look like this:

```
#!/usr/bin/env php
