2017 © Pedro Peláez
 

library symfony-console-filechooser

Filechooser Helper for Symfony2 console (with autocompletion support)

image

macfja/symfony-console-filechooser

Filechooser Helper for Symfony2 console (with autocompletion support)

  • Saturday, August 5, 2017
  • by MacFJA
  • Repository
  • 1 Watchers
  • 5 Stars
  • 3,965 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

File chooser

The library provide a file selector capacity to any symfony console application. It's support autocomplete functionality for navigating in directory., (*1)

Installation

Composer

composer require macfja/symfony-console-filechooser

Usage

use MacFJA\Symfony\Console\Filechooser\FilechooserHelper;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

$app = new Application();

// Adding the helper to Symfony Console Application
$app->getHelperSet()->set(new FilechooserHelper());

$app->register('ask-path')->setCode(function (InputInterface $input, OutputInterface $output) use ($app) {
    // ask and validate the answer
    $dialog = $app->getHelperSet()->get('filechooser');
    $filter = new \MacFJA\Symfony\Console\Filechooser\FileFilter('Where is your file? ');
    $path = $dialog->ask($input, $output, $filter);
    $output->writeln(sprintf('You have just entered: %s', $path));
});

$app->run();

The Versions

05/08 2017

dev-master

9999999-dev

Filechooser Helper for Symfony2 console (with autocompletion support)

  Sources   Download

MIT

The Requires

 

by Avatar MacFJA

file filesystem console symfony autocomplete autocompletion interactive chooser

05/08 2017

0.2

0.2.0.0

Filechooser Helper for Symfony2 console (with autocompletion support)

  Sources   Download

MIT

The Requires

 

by Avatar MacFJA

file filesystem console symfony autocomplete autocompletion interactive chooser

05/08 2017

dev-symfony3

dev-symfony3

Filechooser Helper for Symfony2 console (with autocompletion support)

  Sources   Download

MIT

The Requires

 

by Avatar MacFJA

file filesystem console symfony autocomplete autocompletion interactive chooser

23/09 2015

0.1

0.1.0.0

Filechooser Helper for Symfony2 console (with autocompletion support)

  Sources   Download

MIT

The Requires

 

by Avatar MacFJA

file filesystem console symfony autocomplete autocompletion interactive chooser