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:15 [
"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"
]
"support" => array:2 [
"issues" => "https://github.com/BafS/Testify.php/issues"
"source" => "https://github.com/BafS/Testify.php/tree/master"
]
]
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8