'Install forked package with composer [duplicate]

I'm trying to install a forked package (bouffekai/laravel-oidc-client) which requires another forked package (bouffekai/oidc-client-php). There is no issue with the first one, but I am having an issue with the second one.

Here is the composer.json of the first one:

{
"name": "bouffekai/laravel-oidc-client",
"version": "1.0.0",
"license": "MIT",
"require": {
    "php": ">=8.0",
    "laravel/framework": "^9",
    "bouffekai/oidc-client-php": "dev-master"
},
"require-dev": {
    "roave/security-advisories": "dev-latest",
    "friendsofphp/php-cs-fixer": "^3"
},
"authors": [
    {
        "name": "Cabinet Office Digital Development",
        "email": "[email protected]",
        "role": "Creator"
    },
    {
        "name": "Maicol Battistini",
        "email": "[email protected]",
        "homepage": "https://maicol07.it",
        "role": "Maintainer"
    }
],
"autoload": {
    "psr-4": {
        "Maicol07\\OIDCClient\\": "src/"
    }
},
"extra": {
    "laravel": {
        "providers": [
            "Maicol07\\OIDCClient\\OIDCServiceProvider"
        ]
    }
},
"minimum-stability": "dev",
"repositories": [
    {
        "type": "vcs",
        "url": "[email protected]:bouffekai/oidc-client-php.git"
    }
]

}

I've added repository and added the package in require, but I get this error message:

bouffekai/laravel-oidc-client dev-master requires bouffekai/oidc-client-php dev-master -> could not be found in any version, there may be a typo in the package name



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source