1- # Provides formatters for Phpinsights
1+ ![ alt text] ( https://soyhuce.fr/wp-content/uploads/2020/06/logo-soyhuce-dark-1.png " Soyhuce ")
2+
3+ # PhpInsights formatters
24
35[ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/soyhuce/phpinsights-formatter.svg?style=flat-square )] ( https://packagist.org/packages/soyhuce/phpinsights-formatter )
46[ ![ GitHub Tests Action Status] ( https://img.shields.io/github/workflow/status/soyhuce/phpinsights-formatter/run-tests?label=tests )] ( https://github.com/soyhuce/phpinsights-formatter/actions?query=workflow%3Arun-tests+branch%3Amain )
57[ ![ GitHub Code Style Action Status] ( https://img.shields.io/github/workflow/status/soyhuce/phpinsights-formatter/Check%20&%20fix%20styling?label=code%20style )] ( https://github.com/soyhuce/phpinsights-formatter/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain )
68[ ![ GitHub PHPStan Action Status] ( https://img.shields.io/github/workflow/status/soyhuce/phpinsights-formatter/PHPStan?label=phpstan )] ( https://github.com/soyhuce/phpinsights-formatter/actions?query=workflow%3APHPStan+branch%3Amain )
79[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/soyhuce/phpinsights-formatter.svg?style=flat-square )] ( https://packagist.org/packages/soyhuce/phpinsights-formatter )
810
9- This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
11+ Ce package permet l'ajout de formatters pour [ PhpInsights ] ( https://phpinsights.com/ )
1012
1113## Installation
1214
@@ -16,44 +18,30 @@ You can install the package via composer:
1618composer require soyhuce/phpinsights-formatter
1719```
1820
19- You can publish and run the migrations with:
21+ ### Text Formatter
2022
23+ Utilisez le formatter via
2124``` bash
22- php artisan vendor:publish --tag=" phpinsights-formatter-migrations"
23- php artisan migrate
25+ php artisan insights --format=\\ Soyhuce\\ PhpInsights\\ TextFormatter > insights.txt
2426```
2527
26- You can publish the config file with:
28+ ### Markdown Formatter
2729
30+ Utilisez le formatter via
2831``` bash
29- php artisan vendor:publish --tag= " phpinsights-formatter-config "
32+ php artisan insights --format= \\ Soyhuce \\ PhpInsights \\ MarkdownFormatter
3033```
3134
32- This is the contents of the published config file:
33-
34- ``` php
35- return [
36- ];
37- ```
35+ Le résultat sera stocké sous ` insights-full.md `
3836
39- Optionally, you can publish the views using
37+ ### Light Markdown Formatter
4038
39+ Utilisez le formatter via
4140``` bash
42- php artisan vendor:publish --tag= " phpinsights-formatter-views "
41+ php artisan insights --format= \\ Soyhuce \\ PhpInsights \\ LightMarkdownFormatter
4342```
4443
45- ## Usage
46-
47- ``` php
48- $phpinsightsFormatter = new Soyhuce\PhpinsightsFormatter();
49- echo $phpinsightsFormatter->echoPhrase('Hello, Soyhuce!');
50- ```
51-
52- ## Testing
53-
54- ``` bash
55- composer test
56- ```
44+ Le résultat sera stocké sous ` insights.md `
5745
5846## Changelog
5947
0 commit comments