Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

离线安装需求 #2226

Open
jzbg opened this issue May 14, 2022 · 6 comments
Open

离线安装需求 #2226

jzbg opened this issue May 14, 2022 · 6 comments

Comments

@jzbg
Copy link

jzbg commented May 14, 2022

作者你好,我是在无互联网的环境下开发部署PHPword的,请问怎样才能离线安装PHPword呢?有没有便捷的安装包?

@fd6130
Copy link

fd6130 commented May 20, 2022

如果不是用composer, 把这个包下载下来不就得了?如果你是用composer install的话,包会安装在项目目录vendor里。

@jzbg
Copy link
Author

jzbg commented Jun 16, 2022

是把项目拉下来吗,放在哪个目录呢,会不会缺少依赖

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@github-actions github-actions bot added the Stale label Sep 24, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
@jzbg
Copy link
Author

jzbg commented Jan 11, 2023

如果不是用composer, 把这个包下载下来不就得了?如果你是用composer install的话,包会安装在项目目录vendor里。

包下下来,放在哪个路径呢,是否有要求,依赖怎么查看呢?

@fd6130
Copy link

fd6130 commented Jan 12, 2023

如果不是用composer, 把这个包下载下来不就得了?如果你是用composer install的话,包会安装在项目目录vendor里。

包下下来,放在哪个路径呢,是否有要求,依赖怎么查看呢?

你可以自行查看composer repositories如何配置离线的依赖包。

https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository

在composer.json自行配置 repositories,比如:

{
    "repositories": [
        {
            "type": "path",
            "url": "../../packages/my-package" // 那个依赖包的路径
        }
    ],
    "require": {
        "my/package": "*" // 依赖包里面的 composer.json name
    }
}

然后 composer install / composer update就可以了。

@jzbg
Copy link
Author

jzbg commented Jan 12, 2023

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants