Skip to content

Commit

Permalink
Merge pull request #1 from davemednick/mobetta.stuff
Browse files Browse the repository at this point in the history
Mobetta.stuff
  • Loading branch information
davemednick authored Sep 18, 2024
2 parents 6de41c3 + 5b3e7fa commit 12e2762
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"minimum-stability": "dev",
"require": {
"php": ">=5.3.0"
"php": ">=8.3"
},
"require-dev": {
"victorjonsson/markdowndocs": "dev-master"
Expand Down
29 changes: 29 additions & 0 deletions src/jc21/CliTableCustomManipulators.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* NocWorx Datacenter Management Suite
*
* @package nocworx.clitable
* @copyright 2006-2022 LiquidWeb, LLC
* @license Proprietary
*/

declare(strict_types = 1);

namespace jc21;

/**
* Custom manipulators for the Cli Table class
*/
class CliTableCustomManipulators extends CliTableManipulator
{
/**
* Convert this data into a json string
*
* @param array $data
* @return string
*/
public function jsonify(array $data): string
{
return json_encode($data, JSON_PRETTY_PRINT);
}
}

0 comments on commit 12e2762

Please sign in to comment.