Hi I'm really new to composer. I am using this repo: https://github.com/irazasyed/telegram-bot-sdk I ran this command in my project: composer require irazasyed/telegram-bot-sdk Composer installed version 2.2.0
{
"require": {
"irazasyed/telegram-bot-sdk": "^2.2"
}
}
But when I listed the files in vendor/irazasyed/telegram-bot-sdk/src/ I just had these files:
Actions.php
Commands
FileUpload
Laravel
TelegramClient.php
TelegramResponse.php Api.php
Exceptions
HttpClients
Objects
TelegramRequest.php
but as you see here there are a lot more files. I checked branches: github.com/irazasyed/telegram-bot-sdk/branches and found out that composer is installing "2.0" branch but I want it to use "master" branch . How can I do that?
If you are targeting a branch, you should require the branchname -dev, eg master-dev
. But note that some will commit their newest update to the master branch which could break backward compatibility.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.