+
Skip to content

TFHInc/artisan-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artisan Format

Software License

Format Laravel Artisan command output.

Requirements

This package requires:

  • PHP >= 7.0.0
  • Laravel >= 5.5

Installation

Install the package via Composer:

composer require tfhinc/artisan-format

The package will be found via auto discovery. You may also add the service provider in app/config.php:

TFHInc\ArtisanFormat\ArtisanFormatServiceProvider::class,

Publish the artisan-format.php configuration file to your config/ directory:

php artisan vendor:publish --provider="TFHInc\ArtisanFormat\ArtisanFormatServiceProvider"

Usage

Artisan Format provides a series of Traits that can be used within your Artisan command classes.

Sections

The Sections trait produces distinct sections of text in your command output.

Include the ArtianFormatSections trait in your command class:

use TFHInc\ArtisanFormat\Traits\ArtisanFormatSections;

class Run extends Command
{
    
    use ArtisanFormatSections;

Generate a Section with a Header and Content:

$this->sectionBox('Standard Section Box Header', 'Standard Section Box Content');

Output:

License

The MIT License (MIT). Please see License File for more information.

About

Format Artisan Command Output

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载