code: 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;
      }
docs: @param string $url
  
  @return array