Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Climate Laravel Package

league/climate

League CLImate makes PHP CLI output nicer with easy colored text, formatting, and styled messages. Install via Composer and use simple methods like red() or blue() to print readable, attention-grabbing console output for scripts and command-line tools.

View on GitHub
Deep Wiki
Context7
3.10.1

Fixed

  • [Input] Support input values longer than 1024 characters. #209

3.10.0

Added

  • [Progress] Added methods to get the current and total values. #206

Changed

  • [Support] Added support for PHP 8.4.

3.9.0

Added

  • [Arguments] Adds argument suggestion support for unknown arguments. #204
  • [Progress] Allow the precision to be specified. #198
  • [Password] Allow accept() and other additional features. #171

Fixed

  • Ensure usleep() always received an integer. #197
  • Prevent deprecation errors from type juggling. #190

Changed

  • [Support] Added support for PHP 8.2 & 8.3.

3.8.2

Fixed

  • Avoid passing null to strlen(). #186
  • [Support] Added compatibility for psr/log 2 & 3. #191

3.8.1

Fixed

  • [Linux] Avoid type issue when checking if \STDOUT is defined. #185

3.8.0

Changed

  • [Support] Added support for PHP 8.1.

Fixed

  • [Linux] Added a workaround for executed some parts of the code in a non-cli context. #175

3.7.0

Changed

  • [Support] Added support for PHP 8.0.
  • [Support] Dropped support for PHP 7.2.

3.6.0

Added

  • [Arguments] Add a method to access trailing args as array. #158

Fixed

  • [Table] Add support for newlines in table data. #160
  • [Checkbox] Don't try to add padding if the there's no spare space. #161

Changed

  • [Support] Dropped support for PHP 7.1.

3.5.2

Fixed

  • [Checkbox] Ensure we can output when the terminal width is unknown. #156

3.5.1

Fixed

  • [Art] Be stricter about matching filenames when looking for art. #155
  • [Support] Provide better support for Windows using GitHub actions.

3.5.0

Added

  • [Arguments] Multiple arguments (eg cli -d foo=bar -d baz=qux) available via $climate->arguments->getArray("d"). #111
  • [Arguments] A new method (Argument::values()) replaces the deprecated valueArray() method.
  • [Spinner] Add an indeterminate progress spinner.
  • [Exceptions] All exception now implement League\CLImate\Exceptions\Exception.
  • [Basic] Allow single lines to be cleared using $climate->clearLine(). #145.

Fixed

  • [Arguments] Mixing arguments with/without option values. #122.
  • [Output] Prevent tput output from being sent to the terminal.
  • [Confirm] Accept more reasonable options for yes/no. #126.
  • [Radio] Allow ENTER to be used to choose an option. #140.
  • [Output] Improve the checks for ANSI color checks. #128 / #129.
  • [Art] Only match filenames when looking for art. #130

Changed

  • [Support] Dropped support for PHP 5.6 and PHP 7.0

3.4.1

Fixed

  • [Json] Don't escape slashes when outputting JSON. #121

3.4.0

Added

  • [Logger] Added a Logger class to use CLImate as a PSR-3 logger.

3.3.0

Fixed

  • Ensure multibyte strings are supported everywhere.
  • Improved support for IDE assistance when using method chaining. #102
  • [Art] Improve handling of missing files. #114
  • [Input] Correct the usage of defaultTo() with accept(). #104
  • [Windows] Fixed the terminal width detection. #64

Added

  • [Table] Add support for a prefix argument for each row. #51
  • [Progress] Added an each() method. #112

Changed

  • [Support] Add support for PHP 7.2
  • [Support] Drop support for PHP 5.4
  • [Support] Drop support for PHP 5.5
  • [Support] Drop support for HHVM.
  • Suggest the symfony polyfill library is ext-mbstring is not available. #110

3.2.4

Fixed

  • [Progres] Allow labels to be shown/hidden on each iteration. #98

3.2.3

Added

  • [Support] Added support for PHP 7.1

3.2.2

Fixed

  • [Art] Allow code to be used in a phar. #86

3.2.1

Added

  • [Arguments] Add a trailing() method to get any trailing arguments.
  • [Progress] Added a forceRedraw() method. #72

Fixed

  • [Checkbox] Don't cancel out the formatting for the first checkbox. #77
  • [Padding] Ensure formatting is handled. #78
  • [Columns] Prevent error when less items than columns are passed. #75

3.2.0

Added

Fixed

3.1.1

Fixed

3.1.0

Added

  • password prompt
  • checkboxes prompt
  • radio prompt
  • 'file' as output option
3.0.0

Changed

  • Custom output writers are added simply via the output property on CLImate now, as opposed to the immense amount of scaffolding required before

Added

  • Argument parsing
  • StdErr output
  • Buffer output
  • animate method for running ASCII animations in the terminal. Because it's fun.
  • Input now bolds the default response if it exists
2.6.1

Fixed

  • Added forceAnsiOn and forceAnsiOff methods to address systems that were not identified correctly
2.6.0

Added

  • Allow for passing an array of arrays into columns method
  • tab method, for indenting text
  • padding method, for padding strings to an equal width with a character
  • League\CLImate\TerminalObject\Repeatable for repeatable objects such as tab and br
  • League\CLImate\Decorator\Parser\Ansi and League\CLImate\Decorator\Parser\NonAnsi
  • Factories:
    • League\CLImate\Decorator\Parser\ParserFactory
    • League\CLImate\Util\System\SystemFactory
  • Terminal Objects now are appropriately namespaced as Basic or Dynamic
  • Readers and Writers are appropriately namespaced as such under League\CLImate\Util

Fixed

  • Labels for advance method
  • Non-ansi terminals will now have plaintext output instead of jumbled characters
  • border method now default to full terminal width
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope