public static function companyUrlToOptions($companyUrl)
    {
        $urlParts = parse_url($companyUrl);
        $scheme   = isset($urlParts['scheme']) ? $urlParts['scheme'].'://' : '';
        $host     = isset($urlParts['host']) ? $urlParts['host'] : '';
        $port     = isset($urlParts['port']) ? ':'.$urlParts['port'] : '';
        $path     = isset($urlParts['path']) ? $urlParts['path'] : '';

        $options['company'] = basename($path);
        $options['url']     = $scheme.$host.$port;
        return $options;
    }