A
A
artem1633972017-12-29 19:16:14
Bitbucket
artem163397, 2017-12-29 19:16:14

How to connect a package from bibeket to composer?

Hello! We are making a project on yii2, we rewrote one module for ourselves so that the vendor does not want to screw up and decide to publish its module. I can't publish with git. How can I connect via bitbucket so that the main modules work? Sorry if the question is crooked)))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Vorotnev, 2017-12-29
@HeadOnFire

"repositories": [
 {
   "type": "vcs",
   "url":  "[email protected]:user/repository-name.git"
 }
],
"require": {
  "user/repository-name": "dev-master"
},

If the turnip is private, read here (and change the address of the turnip from [email protected] to https).

A
artem163397, 2017-12-29
@artem163397

Just add
{
"name": "yiisoft/yii2-app-basic",
"description": "Yii 2 Basic Project Template",
"keywords": ["yii2", "framework", "basic" to the bottom of the current composer.json ", "project template"],
"homepage": " www.yiiframework.com ",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": " https://github.com/yiisoft/yii2/issues?state=open ",
"forum": " www.yiiframework.com/forum ",
"wiki": " www.yiiframework.com/wiki ",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2 "
},
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "~2.0 .5",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-swiftmailer": "~2.0.0",
"dmstr/yii2-adminlte-asset": "2.*",
"kartik-v/yii2-widget-fileinput": "@dev",
"kartik-v/yii2-widget-select2": "@dev",
"kartik-v/yii2-sortable": "@dev",
" 2amigos/yii2-date-picker-widget": "~1.0",
"rmrevin/yii2-comments": "~1.4",
"kartik-v/yii2-grid": "@dev",
"unclead/yii2-multiple-input": "~2.0",
"johnitvn/yii2-ajaxcrud": "*",
"kartik-v/yii2-tabs-x": "@dev",
"mihaildev/yii2-ckeditor": "*"
},
"require-dev": {
" yiisoft/yii2-debug": "~2.0.0",
"yiisoft/yii2-gii": "~2.0.0",
"yiisoft/yii2-faker": "~2.0.0",
"codeception/base": "^2.2.3",
"codeception/verify": "~0.3.1",
"codeception/specify": "~0.4.3"
},
"config": {
"process-timeout": 1800
},
"scripts ":{
"post-install-cmd": [
"yii\\composer\\Installer::postInstall"
],
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject",
"yii\\composer\\Installer::postInstall"
]
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {
"setPermission" : [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
]
},
"yii\\composer\\Installer::postInstall": {
"generateCookieValidationKey": [
"config/web.php"
]
}
},
"repositories": [
{
"type": "composer",
"url": " https://asset-packagist.org "
}
]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question