Access information of a local installed Composer package

Code
<?php

use Composer\Repository\InstalledFilesystemRepository as Repo;
use 
Composer\Json\JsonFile;
use 
Composer\Package\Dumper\ArrayDumper;

$file 'vendor/composer/installed.json';

$repository = new Repo(new JsonFile($file));

$package $repository
    
->findPackage('bafs/testify''1.0');

$dumper = new ArrayDumper();
dump($dumper->dump($package));
Result
array:14 [
"name" => "bafs/testify"
"version" => "v1.0"
"version_normalized" => "1.0.0.0"
"source" => array:3 [
"type" => "git"
"url" => "https://github.com/BafS/Testify.php.git"
"reference" => "52dda3459096976689d255d44250c6f8f30e62a0"
]
"dist" => array:4 [
"type" => "zip"
"url" => "https://api.github.com/repos/BafS/Testify.php/zipball/52dda3459096976689d255d44250c6f8f30e62a0"
"reference" => "52dda3459096976689d255d44250c6f8f30e62a0"
"shasum" => ""
]
"require" => array:1 [
"php" => ">=5.3.0"
]
"time" => "2016-03-14T11:52:02+00:00"
"type" => "library"
"installation-source" => "dist"
"autoload" => array:1 [
"psr-4" => array:1 [
"Testify\" => "lib/Testify/"
]
]
"notification-url" => "https://packagist.org/downloads/"
"license" => array:1 [
0 => "GPL-3.0"
]
"description" => "Testify makes writing unit tests fun again. It has an elegant syntax and keeps things simple"
"keywords" => array:3 [
0 => "framework"
1 => "testing"
2 => "unit"
]
]
Used Versions
PHP 7.2, Zend 3.0, Symfony 4.0, Laravel 5.6, PHPUnit 6.5, Doctrine 2.8