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"];
    }