2017 © Pedro Peláez
 

library cli

Simplified creation of cli scripts for Joomla

image

symla/cli

Simplified creation of cli scripts for Joomla

  • Monday, January 16, 2017
  • by vrbata
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,444 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

Symla-CLI

Base structure for Joomla CLI scripts Provides support classes for simplified CLI scripts development for Joomla, (*1)

1. Install Dependencies

To work with this. You need to pull it via composer, (*2)

composer require symla/cli

2. Let Joomla know about it

In your cli script you have to specify path to composer autoloader, copy bootstrap.php from cli folder to your cli folder and require it in your cli script, (*3)

require_once(__DIR__ . '/bootstrap.php');

3. Create CLI file

Now you can use simplified CLI bootstrap class like this:, (*4)


use Symla\Joomla\Cli\ApplicationCli; class SimplifiedCli extends ApplicationCli { public function doExecute() { // do something useful } } ApplicationCli::getInstance('SimplifiedCli')->execute();

The Versions

16/01 2017

dev-master

9999999-dev

Simplified creation of cli scripts for Joomla

  Sources   Download

by Josef Vrbata

16/01 2017

1.0.2

1.0.2.0

Simplified creation of cli scripts for Joomla

  Sources   Download

by Josef Vrbata

20/11 2016

1.0.1

1.0.1.0

Simplified creation of cli scripts for Joomla

  Sources   Download

by Josef Vrbata

13/06 2016

1.0.0

1.0.0.0

Simplified creation of cli scripts for Joomla

  Sources   Download

by Josef Vrbata