In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
这篇文章将为大家详细讲解有关PHP中Composer如何加载本地扩展包,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
代码如下
项目下的 HttpServerFrame/composer.json{ "name": "xxx/http-server-demo", "authors": [ { "name": "xxx", "email": "xxx@xxx.com" } ], "autoload": { "psr-4": { "App\\": "app/" } }, "repositories": { "0": { "type": "path", "url": "../packages/*/*", "options": { "symlink": true //软链方式 } } }, "require": { "xxx/http-server-frame": "dev-release", "xxx/http-test": "dev-release" }}关注这块代码"repositories": { "0": { "type": "path", "url": "../packages/*/*", //从 packages 目录下的*/* 安装此目录下必须要有composer.json "options": { "symlink": true //软链方式 } } },
直接composer update 即可导入
关于"PHP中Composer如何加载本地扩展包"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.