private static function getLibraryVersion()
    {

        $path = dirname(__FILE__) . '/../../composer.json';

        if (file_exists($path)) {
            $contents = file_get_contents($path);
            $contents = utf8_encode($contents);

            $composer = json_decode($contents, true);
        } else {
            $composer["version"] = "N/A";
        }

        return $composer["version"];
    }
private static function getLibraryVersion()
    {

        $path = dirname(__FILE__) . '/../../composer.json';

        if (file_exists($path)) {
            $contents = file_get_contents($path);
            $contents = utf8_encode($contents);

            $composer = json_decode($contents, true);
        } else {
            $composer["version"] = "N/A";
        }

        return $composer["version"];
    }
private static function getLibraryVersion ( ) { $ path = dirname ( __FILE__ ) . '/../../composer.json' ; if ( file_exists ( $ path ) ) { $ contents = file_get_contents ( $ path ) ; $ contents = utf8_encode ( $ contents ) ; $ composer = json_decode ( $ contents , true ) ; } else { $ composer [ "version" ] = "N/A" ; } return $ composer [ "version" ] ; }
Get library version from composer.json file
@return string
Get library version from composer . json file