ncc/tests/old_tests/composer/parse_json.php

6 lines
272 B
PHP
Raw Normal View History

2022-12-04 06:43:54 +00:00
<?php
require(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'autoload.php');
$example = \ncc\Utilities\IO::fread(__DIR__ . DIRECTORY_SEPARATOR . 'json_example.json');
var_dump(\ncc\Objects\ComposerJson::fromArray(json_decode($example, true)));