PHPackages                             webignition/symfony-console-typed-input - 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. webignition/symfony-console-typed-input

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

webignition/symfony-console-typed-input
=======================================

Symfony InputInterface providing type-specific getters for options and arguments

1.1(6mo ago)12.0M—2.8%1[1 issues](https://github.com/webignition/symfony-console-typed-input/issues)1MITPHPPHP ^8.3CI passing

Since Mar 26Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/webignition/symfony-console-typed-input)[ Packagist](https://packagist.org/packages/webignition/symfony-console-typed-input)[ Docs](https://github.com/webignition/symfony-console-typed-input)[ RSS](/packages/webignition-symfony-console-typed-input/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (7)Versions (11)Used By (1)

Symfony Console Typed Input
===========================

[](#symfony-console-typed-input)

A wrapper for `Symfony\Component\Console\Input\InputInterface` adding integer- and boolean-specific argument and option getters.

For fans of strongly-typed PHP, or just those tired of battling with [phpstan](https://github.com/phpstan/phpstan)`--level max` when analysing Symfony console commands.

Methods
-------

[](#methods)

```
public function getIntegerArgument(string $name): int;
public function getIntegerOption(string $name): int;
public function getBooleanArgument(string $name): bool;
public function getBooleanOption(string $name): bool;
```

All other `InputInterface` method calls are proxied to the wrapped `InputInterface` instance.

Usage
-----

[](#usage)

```
use webignition\SymfonyConsole\TypedInput\TypedInput;

// Assuming we're in a console command and $input is an InputInterface instance

$typedInput = new TypedInput($input);

// Guaranteed to return an integer
$integerArgument = $typedInput->getIntegerArgument('integer-argument-name');
$integerOption = $typedInput->getIntegerOption('integer-option-name');

// Guaranteed to return a boolean
$booleanArgument = $typedInput->getBooleanArgument('boolean-argument-name');
$booleanOption = $typedInput->getBooleanOption('boolean-option-name');
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance48

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 92.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~345 days

Recently: every ~537 days

Total

8

Last Release

196d ago

Major Versions

0.6 → 1.02025-11-03

PHP version history (5 changes)0.1PHP &gt;=7.2.0

0.5PHP &gt;=7.4

0.6PHP &gt;=7.4|^8

1.0PHP ^8

1.1PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/278be37d1b614ef0c40b22b777663e545a1f6d69dd4f908888cbb557ad7e608f?d=identicon)[webignition](/maintainers/webignition)

---

Top Contributors

[![webignition](https://avatars.githubusercontent.com/u/76546?v=4)](https://github.com/webignition "webignition (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![tomasnorre](https://avatars.githubusercontent.com/u/1212481?v=4)](https://github.com/tomasnorre "tomasnorre (1 commits)")

---

Tags

consolesymfonytypeinputtypedinputinterface

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webignition-symfony-console-typed-input/health.svg)

```
[![Health](https://phpackages.com/badges/webignition-symfony-console-typed-input/health.svg)](https://phpackages.com/packages/webignition-symfony-console-typed-input)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[contributte/console

Best Symfony Console for Nette Framework

983.6M49](/packages/contributte-console)[coresphere/console-bundle

This bundle allows you accessing the symfony2 console via your browser

146337.3k5](/packages/coresphere-console-bundle)[contributte/console-extra

Nette-based console commands for latte, DIC, security, utils and many others

301.2M2](/packages/contributte-console-extra)[phlib/console-process

Console implementation.

1833.5k2](/packages/phlib-console-process)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
