Skip to content

code-check/cli-template-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI template for PHP

This is template app for making CLI application with PHP.
You can make CLI application by editing src/MyCommand.php.

This app uses Symfony Console for base of CLI application.

How to get input parameters

As default, You cant ll commandline parameters by InputInterface#getArgument('args') method.

  $args = $input->getArgument('args');

You can customize configure() method to change how to get input parameters.

How to output result

You can use OputputInterface#writeln method.

  $output->writeln($v);

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •