for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ExoUNX\Vasri;
use Illuminate\Support\Facades\File;
use Exception;
/**
* Class ManifestReader
*
* @package ExoUNX\Vasri
* @author Gaige Lama <[email protected]>
* @license MIT License
* @link https://github.com/ExoUNX/Vasri
*/
class ManifestReader
{
* Loads the Manifest json file and decodes it into an array
* @param string $file
* @return array
* @throws Exception
public function getManifest(string $file): array
if (File::exists($file)) {
return json_decode(file_get_contents($file), true);
} else {
throw new Exception("Incorrect file path or file does not exist for $file");
}