search hotlink icon profile hotlink icon

Each time you run Fusion, it retrieves all current settings from the inner config array, a monolithic data consisting of sequential and associative entries. This page explains the schema of the hub part of these entries. A common gateway for external production packages, with storage systems configured through the following APIs:

On This Page

Valvoid

The valvoid.com entry configures the connection to the default package registry.

API

The api entry contains the fully qualified class name that implements the functionality.

                $config["hub"]["apis"]["valvoid.com"]["api"] = \Valvoid\Fusion\Hub\APIs\Remote\Valvoid\Valvoid::class;
            

Protocol

The protocol entry contains the network transfer protocol. By default, the API uses the secure version of the Hypertext Transfer Protocol (HTTPS):

                $config["hub"]["apis"]["valvoid.com"]["protocol"] = "https";
            

Setting the value to http will result in a non-secure connection.

Domain

The domain entry contains the location. By default, the API set it to the cloud:

                $config["hub"]["apis"]["valvoid.com"]["domain"] = "valvoid.com";
            

Tokens

The tokens entry contains bearer authentication tokens. Since the default registry supports packages with up to 4 parent groups, each token can be namespaced by up to 5 path segments, such as:

                $config["hub"]["apis"]["valvoid.com"]["tokens"] = [

    // all request
    "AAT-ZjAxOTE0Y2...",
    
    // path segment
    // group identifier
    "valvoid" => [
    
        // path segment
        // package identifier
        // only Fusion package manager request
        "fusion" => "AAT-Yzc2MD...",
        "AAT-N2ZhZD..."
    ]
];
            

The hub processes these tokens in reverse order, using the deepest tokens first and exchanging them if they are invalid.

By default, the value is an empty array.

GitLab

The gitlab.com entry configures the connection to the GitLab code repository platform.

API

The api entry contains the fully qualified class name that implements the functionality.

                $config["hub"]["apis"]["gitlab.com"]["api"] = \Valvoid\Fusion\Hub\APIs\Remote\GitLab\GitLab::class;
            

Protocol

The protocol entry contains the network transfer protocol. By default, the API uses the secure version of the Hypertext Transfer Protocol (HTTPS):

                $config["hub"]["apis"]["gitlab.com"]["protocol"] = "https";
            

Setting the value to http will result in a non-secure connection.

Domain

The domain entry contains the location. By default, the API set it to the cloud:

                $config["hub"]["apis"]["gitlab.com"]["domain"] = "gitlab.com";
            

Tokens

The tokens entry contains bearer authentication tokens. Since the platform supports packages with up to 20 parent groups, each token can be namespaced by up to 21 path segments, such as:

                $config["hub"]["apis"]["gitlab.com"]["tokens"] = [

    // all request
    "glpat-cR8Q-g...",
    
    // path segment
    // group identifier
    "valvoid" => [
    
        // path segment
        // package identifier
        // only Fusion package manager request
        "fusion" => "glpat-oRaiG...",
        "glpat-gqCC..."
    ]
];
            

The hub processes these tokens in reverse order, using the deepest tokens first and exchanging them if they are invalid.

By default, the value is an empty array.

GitHub

The github.com entry configures the connection to the GitHub code repository platform.

API

The api entry contains the fully qualified class name that implements the functionality.

                $config["hub"]["apis"]["github.com"]["api"] = \Valvoid\Fusion\Hub\APIs\Remote\GitHub\GitHub::class;
            

Protocol

The protocol entry contains the network transfer protocol. By default, the API uses the secure version of the Hypertext Transfer Protocol (HTTPS):

                $config["hub"]["apis"]["github.com"]["protocol"] = "https";
            

Setting the value to http will result in a non-secure connection.

Domain

The domain entry contains the location. By default, the API set it to the cloud:

                $config["hub"]["apis"]["github.com"]["domain"] = "github.com";
            

Tokens

The tokens entry contains bearer authentication tokens. Since the platform supports packages with only 1 parent group, each token can be namespaced by up to 2 path segments, such as:

                $config["hub"]["apis"]["github.com"]["tokens"] = [

    // all request
    "github_pat_11AJC...",
    
    // path segment
    // group identifier
    "valvoid" => [
    
        // path segment
        // package identifier
        // only Fusion package manager request
        "fusion" => "ghp_DyJKWazfOX...",
        "github_pat_LTqmaGul..."
    ]
];
            

The hub processes these tokens in reverse order, using the deepest tokens first and exchanging them if they are invalid.

By default, the value is an empty array.

Bitbucket

The bitbucket.org entry configures the connection to the Bitbucket code repository platform.

API

The api entry contains the fully qualified class name that implements the functionality.

                $config["hub"]["apis"]["bitbucket.org"]["api"] = \Valvoid\Fusion\Hub\APIs\Remote\Bitbucket\Bitbucket::class;
            

Protocol

The protocol entry contains the network transfer protocol. By default, the API uses the secure version of the Hypertext Transfer Protocol (HTTPS):

                $config["hub"]["apis"]["bitbucket.org"]["protocol"] = "https";
            

Setting the value to http will result in a non-secure connection.

Domain

The domain entry contains the location. By default, the API set it to the cloud:

                $config["hub"]["apis"]["bitbucket.org"]["domain"] = "bitbucket.org";
            

Tokens

The tokens entry contains bearer authentication tokens. Since the platform supports packages with only 1 parent group, each token can be namespaced by up to 2 path segments, such as:

                $config["hub"]["apis"]["bitbucket.org"]["tokens"] = [

    // all request
    "ATCTT3xFfGN0B-vVx...",
    
    // path segment
    // group identifier
    "valvoid" => [
    
        // path segment
        // package identifier
        // only Fusion package manager request
        "fusion" => "ATCTT3xFfGN0Opn...",
        "ATCTT3xFfGNcVkF_..."
    ]
];
            

The hub processes these tokens in reverse order, using the deepest tokens first and exchanging them if they are invalid.

By default, the value is an empty array.

Git

The git entry configures the connection to the local Git repository.

API

The api entry contains the fully qualified class name that implements the functionality.

                $config["hub"]["apis"]["git"]["api"] = \Valvoid\Fusion\Hub\APIs\Local\Git\Git::class;
            

Dir

The dir entry configures the connection to the local directory.

API

The api entry contains the fully qualified class name that implements the functionality.

                $config["hub"]["apis"]["dir"]["api"] = \Valvoid\Fusion\Hub\APIs\Local\Dir\Dir::class;