Access information of a local installed Composer package

Code
<?php

use Composer\Repository\InstalledFilesystemRepository as Repo;
use 
Composer\IO\NullIO;
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''dev-master');

$dumper = new ArrayDumper();
dump($dumper->dump($package));
Result
array:14 [
"name" => "bafs/testify"
"version" => "dev-master"
"version_normalized" => "9999999-dev"
"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-14 11:52:02"
"type" => "library"
"installation-source" => "source"
"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.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6