Download the PHP package codedungeon/php-messenger without Composer
On this page you can find all versions of the php package codedungeon/php-messenger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codedungeon/php-messenger
More information about codedungeon/php-messenger
Files in codedungeon/php-messenger
Package php-messenger
Short Description PHP library for creating console messages
License MIT
Informations about the package php-messenger
PHP Messenger
Description
PHP Messenger provides a suite of routine which can be used in CLI based applications, providing a simple consistent interface, taking care of all the colorizing for you.
Using with Laravel Commands and Laravel-Zero
In addition, PHP Messenger can also be used with CLI applications created with Laravel Commands or Laravel-Zero, using the Laravel facades interface.
Installation
Laravel Configuration
Laravel before 5.5 registration
-
Registering Service Provider
Modify
config/app.php
and add the Service Provide -
Registering Facades
Modify
config/app/php
and add the Facades to thealiases
section
Laravel 5.5 and greater
When installing into a Laravel based project, it will use the auto discover system available with Laravel 5.5 or greater.
Laravel Zero Configuration
-
Register Service Provider
Modify config/app.php
providers
section - Create desired command, and use as follows
Using in non-Laravel applications
Usage
Messenger Signature
All messenger methods use the same method signature as follows
Parameter | Type | Description |
---|---|---|
message | string | Desired message to display in console |
label | string | Optional label message, if supplied the label will appear first, followed by message |
Messenger Methods
License
Copyright © 2019-2020 Mike Erickson Released under the MIT license
Credits
PHP Messenger written by Mike Erickson
E-Mail: [email protected]
Twitter: @codedungeon
Website: codedungeon.io