protected function parse_header_uri( $repo_header ) {
		$header_parts         = parse_url( $repo_header );
		$header_path          = pathinfo( $header_parts['path'] );
		$header['original']   = $repo_header;
		$header['scheme']     = isset( $header_parts['scheme'] ) ? $header_parts['scheme'] : null;
		$header['host']       = isset( $header_parts['host'] ) ? $header_parts['host'] : null;
		$header['owner']      = trim( $header_path['dirname'], '/' );
		$header['repo']       = $header_path['filename'];
		$header['owner_repo'] = implode( '/', [ $header['owner'], $header['repo'] ] );
		$header['base_uri']   = str_replace( $header_parts['path'], '', $repo_header );
		$header['uri']        = isset( $header['scheme'] ) ? trim( $repo_header, '/' ) : null;

		$header = $this->sanitize( $header );

		return $header;
	}
protected function parse_header_uri( $repo_header ) {
		$header_parts         = parse_url( $repo_header );
		$header_path          = pathinfo( $header_parts['path'] );
		$header['original']   = $repo_header;
		$header['scheme']     = isset( $header_parts['scheme'] ) ? $header_parts['scheme'] : null;
		$header['host']       = isset( $header_parts['host'] ) ? $header_parts['host'] : null;
		$header['owner']      = trim( $header_path['dirname'], '/' );
		$header['repo']       = $header_path['filename'];
		$header['owner_repo'] = implode( '/', [ $header['owner'], $header['repo'] ] );
		$header['base_uri']   = str_replace( $header_parts['path'], '', $repo_header );
		$header['uri']        = isset( $header['scheme'] ) ? trim( $repo_header, '/' ) : null;

		$header = $this->sanitize( $header );

		return $header;
	}
protected function parse_header_uri ( $ repo_header ) { $ header_parts = parse_url ( $ repo_header ) ; $ header_path = pathinfo ( $ header_parts [ 'path' ] ) ; $ header [ 'original' ] = $ repo_header ; $ header [ 'scheme' ] = isset ( $ header_parts [ 'scheme' ] ) ? $ header_parts [ 'scheme' ] : null ; $ header [ 'host' ] = isset ( $ header_parts [ 'host' ] ) ? $ header_parts [ 'host' ] : null ; $ header [ 'owner' ] = trim ( $ header_path [ 'dirname' ] , '/' ) ; $ header [ 'repo' ] = $ header_path [ 'filename' ] ; $ header [ 'owner_repo' ] = implode ( '/' , [ $ header [ 'owner' ] , $ header [ 'repo' ] ] ) ; $ header [ 'base_uri' ] = str_replace ( $ header_parts [ 'path' ] , '' , $ repo_header ) ; $ header [ 'uri' ] = isset ( $ header [ 'scheme' ] ) ? trim ( $ repo_header , '/' ) : null ; $ header = $ this -> sanitize ( $ header ) ; return $ header ; }
Parse URI param returning array of parts.

@param string $repo_header

@return array $header
Parse URI param returning array of parts .