Loading a composer package through a Github fork -


i forked library on github , want load fork project without adding forked library packagist. following error after adding repository , require composer.json:

your requirements not resolved installable set of packages.    problem 1     - requested package cnizzardini/ssl-certificate not found in version, there may typo in package name.  potential causes:  - typo in package name  - package not available in stable-enough version according minimum-stability setting    see <https://getcomposer.org/doc/04-schema.md#minimum-stability> more details. 

here full composer.json

{     "name": "cakephp/app",     "description": "cakephp skeleton app",     "homepage": "http://cakephp.org",     "type": "project",     "license": "mit",     "require": {         "php": ">=5.5.9",         "cakephp/cakephp": "~3.4",         "mobiledetect/mobiledetectlib": "2.*",         "cakephp/migrations": "~1.0",         "cakephp/plugin-installer": "*",         "guzzlehttp/guzzle": "^6.2",         "donatj/phpuseragentparser": "^0.7.0",         "cnizzardini/ssl-certificate": "dev-master"     },     "require-dev": {         "psy/psysh": "@stable",         "cakephp/debug_kit": "~3.2",         "cakephp/bake": "~1.1",         "phpunit/phpunit": "^5.5"     },     "suggest": {         "phpunit/phpunit": "allows automated tests run without system-wide install.",         "cakephp/cakephp-codesniffer": "allows check code against coding standards used in cakephp."     },     "autoload": {         "psr-4": {             "app\\": "src",             "api\\": "./plugins/api/src",             "channel\\": "./plugins/channel/src",             "system\\": "./plugins/system/src",             "admin\\": "./plugins/admin/src"         }     },     "autoload-dev": {         "psr-4": {             "app\\test\\": "tests",             "cake\\test\\": "./vendor/cakephp/cakephp/tests",             "api\\test\\": "./plugins/api/tests",             "channel\\test\\": "./plugins/channel/tests",             "system\\test\\": "./plugins/system/tests",             "admin\\test\\": "./plugins/admin/tests"         }     },     "scripts": {         "post-install-cmd": "app\\console\\installer::postinstall",         "post-create-project-cmd": "app\\console\\installer::postinstall",         "post-autoload-dump": "cake\\composer\\installer\\plugininstaller::postautoloaddump"     },     "repositories": [         {             "type": "vcs",             "url": "https://github.com/cnizzardini/ssl-certificate.git"         }     ],     "minimum-stability": "stable",     "prefer-stable": true } 

i have tried adding https://github.com/cnizzardini/ssl-certificate , without .git. have tried setting minimum-stability dev , prefer-stable false.

nothing works :-(

the composer.json file on fork still calls package "spatie/ssl-certificate", that's name of package need require.

this should work:

{     ...     "require": {         ...         "spatie/ssl-certificate": "dev-master"     },     ...     "repositories": [         {             "type": "vcs",             "url": "https://github.com/cnizzardini/ssl-certificate.git"         }     ],     ... } 

if doesn't, can rename package on own fork changing name property in composer.json file:

{     "name": "cnizzardini/ssl-certificate",     "description": "a class query properties of ssl certificate ",     ... } 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -