Overview

Namespaces

  • Webmozart
    • Console
      • Adapter
      • Api
        • Application
        • Args
          • Format
        • Command
        • Config
        • Event
        • Formatter
        • IO
        • Resolver
      • Args
      • Config
      • Formatter
      • Handler
        • Help
      • IO
        • InputStream
        • OutputStream
      • Process
      • Resolver
      • UI
        • Alignment
        • Component
        • Help
        • Layout
        • Style
      • Util

Classes

  • Style
  • StyleSet

Interfaces

  • Formatter
  • Overview
  • Namespace
  • Class

Interface Formatter

Formats strings.

Direct known implementers

Webmozart\Console\Api\IO\IO, Webmozart\Console\Api\IO\Output, Webmozart\Console\Formatter\AnsiFormatter, Webmozart\Console\Formatter\NullFormatter, Webmozart\Console\Formatter\PlainFormatter

Indirect known implementers

Webmozart\Console\IO\BufferedIO, Webmozart\Console\IO\ConsoleIO
Namespace: Webmozart\Console\Api\Formatter
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Formatter/Formatter.php
Methods summary
public string
# format( string $string, Webmozart\Console\Api\Formatter\Style $style = null )

Formats the given string.

Formats the given string.

Parameters

$string
The string to format.
$style
The style to use.

Returns

string
The formatted string.
public string
# removeFormat( string $string )

Removes the format tags from the given string.

Removes the format tags from the given string.

Parameters

$string
The string to remove the format tags from.

Returns

string
The string without format tags.
Webmozart Console API API documentation generated by ApiGen