@@ -148,6 +148,19 @@ progress bar as necessary::
148148 $progress->increment(4);
149149 $progress->draw();
150150
151+ Banner Helper
152+ -------------
153+
154+ The ``BannerHelper `` can be used to format one or more lines of text into
155+ a banner with a background and horizontal padding::
156+
157+ $io->helper('Banner')
158+ ->withPadding(5)
159+ ->withStyle('success.bg')
160+ ->output(['Work complete']);
161+
162+ .. versionadded :: 5.1.0
163+ The ``BannerHelper `` was added in 5.1
151164
152165Getting User Input
153166==================
@@ -300,6 +313,10 @@ are several built-in styles, and you can create more. The built-in ones are
300313* ``info `` Informational messages. Cyan text.
301314* ``comment `` Additional text. Blue text.
302315* ``question `` Text that is a question, added automatically by shell.
316+ * ``info.bg `` White background with cyan text.
317+ * ``warning.bg `` Yellow background with black text.
318+ * ``error.bg `` Red background with black text.
319+ * ``success.bg `` Green background with black text.
303320
304321You can create additional styles using ``$io->setStyle() ``. To declare a
305322new output style you could do::
@@ -332,6 +349,9 @@ truthy value enables them.
332349Adding a style makes it available on all instances of ConsoleOutput as well,
333350so you don't have to redeclare styles for both stdout and stderr objects.
334351
352+ .. versionchanged :: 5.1.0
353+ The ``info.bg ``, ``warning.bg ``, ``error.bg ``, and ``success.bg `` were added.
354+
335355Turning Off Coloring
336356====================
337357
0 commit comments