PHPackages                             gameplayjdk/slim-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. gameplayjdk/slim-console

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

gameplayjdk/slim-console
========================

The minimalistic slim framework console implementation.

1.0.0(6y ago)013MITPHPPHP &gt;=7.1

Since Sep 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GameplayJDK/slim-console)[ Packagist](https://packagist.org/packages/gameplayjdk/slim-console)[ RSS](/packages/gameplayjdk-slim-console/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

slim-console
============

[](#slim-console)

The minimalistic slim framework console implementation.

About
-----

[](#about)

> So, what exactly is this package?

Well, it is a simple library for [Slim Framework 3](http://www.slimframework.com/docs/v3/) that allows you to call controller actions from the console.

It utilizes the strategy design pattern to provide a flexible way of parsing a given argv array.

You can find more information on the php argv variable [here](https://www.php.net/manual/en/reserved.variables.argv.php).

Further it provides a small middleware class, designed to stop web-access to these actions.

Installation
------------

[](#installation)

Run `composer require gameplayjdk/slim-console`.

Yes, it's that simple.

Usage
-----

[](#usage)

Initial setup:

```
