laravel - composer create-project from private repo -


i have private project hosted on bit bucket. have ssh key setup. there way can use php composer create-project vendor/name path command in same way if on packagist?

well there different ways accomplish 1 being use of composer repository used instead of packagist.org, better more centralized way manage private composer packages. other method use composer.json incorporates private repos within environments, per environment.

first

composer allows use private repositories create projects.

like so...

composer create-project vendor/name path --repository-url=http://repo.yourcomposerrepo.com 

since won't submit private package packagist. url needs packages.json file @ minimum, use satis or own packagist if want more dynamic solution packages.json.

the method using composer.json applies created projects use custom repositories private packages, not creating new projects private repositories. use next method if want go down similar route.

second

configure private repository config.json globally environment. normally..

composer create-project vendor/name path 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -