PHPackages                             ampersa/axo - 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. ampersa/axo

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

ampersa/axo
===========

Axo - A simple console app micro-framework

2.4.0(8y ago)037MITPHP &gt;=7.0

Since Jan 7Compare

[ Source](https://github.com/ampersa/axo)[ Packagist](https://packagist.org/packages/ampersa/axo)[ RSS](/packages/ampersa-axo/feed)WikiDiscussions Synced today

READMEChangelogDependencies (7)Versions (25)Used By (0)

Axo
===

[](#axo)

A Console App Micro-Framework
-----------------------------

[](#a-console-app-micro-framework)

[![license](https://camo.githubusercontent.com/e773541b43d497bdf703464bef40dec9cca73eeaec5d077345dc583335cef1c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616d70657273612f636f6e736f6c652d6170702e737667)](https://camo.githubusercontent.com/e773541b43d497bdf703464bef40dec9cca73eeaec5d077345dc583335cef1c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616d70657273612f636f6e736f6c652d6170702e737667)[![Github tag](https://camo.githubusercontent.com/5d8cc0c7e3a0ff11756101bb7fd43b802897092c54c77256be079b0631f89ba3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f616d70657273612f636f6e736f6c652d6170702e737667)](https://camo.githubusercontent.com/5d8cc0c7e3a0ff11756101bb7fd43b802897092c54c77256be079b0631f89ba3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f616d70657273612f636f6e736f6c652d6170702e737667)[![GitHub contributors](https://camo.githubusercontent.com/66d2e58d18a0067604490b0493dd720444355e702de93521fa245c229cdce357/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f616d70657273612f636f6e736f6c652d6170702e737667)](https://camo.githubusercontent.com/66d2e58d18a0067604490b0493dd720444355e702de93521fa245c229cdce357/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f616d70657273612f636f6e736f6c652d6170702e737667)

A simple framework for creating console apps and quick microservices

Usage
-----

[](#usage)

Run `php axo` to list available commands:

```
$ php axo

Available commands:
--------------------
example    An example command
new        Create a new command
version    Print the current running version of Axo

```

### Create a new Command

[](#create-a-new-command)

```
$ php axo new --help
Create a new command

USAGE
php axo new NAME COMMAND

ARGUMENTS
name             The name of the command file
command          The command signature to run the new command

OPTIONS
--namespace      The namespace to create the command in
--description    A description for the command
--directory      The directory to store the new command in
--help           Displays this help text
--quiet          Silences the commands output

```

For example:

```
$ php axo new ProcessCommand process --description="Process a file"

```

### Global Options

[](#global-options)

```
--help          Print the help text for the command, if available
--quiet/-q      Silence any output from the command

```

Commands
--------

[](#commands)

Commands are placed in the commands/ directory and are enumerated automatically.

### Command Template

[](#command-template)

```
