简体   繁体   English

如何在PHP中更新作曲家

[英]How to update composer in PHP

I'm new to the composer I'm using a plugin here they used composer. 我是作曲者的新手,我在这里使用插件。 I getting some errors that the reason I want to update composer because might be an issue with the composer i'm not sure what is the issue here. 我收到一些错误,这是我想更新作曲家的原因,因为这可能是作曲家的问题,我不确定这里的问题是什么。 my question is in my plugin composer is already installed. 我的问题是我的插件编辑器已经安装。 Are there any other things I have to install in local? 我还必须在本地安装其他东西吗?

How should I update this composer used in the plugin? 我应该如何更新插件中使用的这个作曲家?

I'm using this plugin https://github.com/codehaiku/envato-purchase-code-verifier 我正在使用这个插件https://github.com/codehaiku/envato-purchase-code-verifier

here I just download the plugin and added my token and API but when I was entered purchase code I was getting an error Invalid Purchase Code . 在这里,我只是下载插件并添加了令牌和API,但是当我输入购买代码时,我收到了错误的“ Invalid Purchase Code Can anyone suggest me is there any other alternative way to this instead of using this plugin some other plugins? 谁能建议我还有其他替代方法,而不是使用其他插件吗?

Any help will be appreciated. 任何帮助将不胜感激。

To answer your question as asked: 按照要求回答您的问题:

composer self-update 作曲家自我更新

However, if you're worried that the composer file could be bad download a new version here 但是,如果您担心作曲家文件可能不正确,请在此处下载新版本

If you pay attention to the steps you'll eventually be at one where there's a file called composer.phar in the directory you ran it (probably in your webroot/public_html folder) and then you can be sure you're using the new version by using the command 如果您注意这些步骤,则最终会进入运行该文件的目录(可能在您的webroot / public_html文件夹中)中名为composer.phar的文件,然后可以确定使用的是新版本通过使用命令

php composer.phar update

that will update your libraries. 这将更新您的库。

On a potentially more helpful note, contact the vendor as your key may, legitimately, be wrong and/or you purchase an invalid code from a 3rd party. 需要进一步说明的是,请与供应商联系,因为您的密钥可能合法地错了,并且/或者您从第三方购买了无效的密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM