Skip to content

marcin-jozwikowski/console-date-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Console DateTime picker

A DateTime picker for Symfony Console commands

Installation

composer require marcin-jozwikowski/console-date-picker

Usage

Example usage in Symfony command

protected function execute(InputInterface $input, OutputInterface $output): int
{
    $datePicker = new DatePicker($input, $output);
    $date       = $datePicker->getDate(new YMDPickerDisplay(), "Please provide date ");

    $io->success($date->format('Y-m-d H:i:s'));

    return Command::SUCCESS;
}

About

A DateTime picker for Symfony Console commands

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages