private function getLicenses($url)
    {
        $licenses = array();

        $data = json_decode(file_get_contents($url), true);

        foreach ($data['licenses'] as $info) {
            $licenses[$info['licenseId']] = array(
                trim($info['name']), $info['isOsiApproved'], $info['isDeprecatedLicenseId']
            );
        }

        uksort($licenses, 'strcasecmp');

        return $licenses;
    }
private function getLicenses($url)
    {
        $licenses = array();

        $data = json_decode(file_get_contents($url), true);

        foreach ($data['licenses'] as $info) {
            $licenses[$info['licenseId']] = array(
                trim($info['name']), $info['isOsiApproved'], $info['isDeprecatedLicenseId']
            );
        }

        uksort($licenses, 'strcasecmp');

        return $licenses;
    }
@param string $url

@return array