First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
20
vendor/consolidation/output-formatters/test.php
vendored
Normal file
20
vendor/consolidation/output-formatters/test.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
use Consolidation\OutputFormatters\Transformations\WordWrapper;
|
||||
|
||||
include 'vendor/autoload.php';
|
||||
|
||||
$wrapper = new WordWrapper(78);
|
||||
|
||||
$data = [
|
||||
'name' => ['Name', ':', 'Rex', ],
|
||||
'species' => ['Species', ':', 'dog', ],
|
||||
'food' => ['Food', ':', 'kibble', ],
|
||||
'legs' => ['Legs', ':', '4', ],
|
||||
'description' => ['Description', ':', 'Rex is a very good dog, Brett. He likes kibble, and has four legs.', ],
|
||||
];
|
||||
|
||||
$result = $wrapper->wrap($data);
|
||||
|
||||
var_export($result);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue