In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces composer require how to load the local expansion package, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Create a directory composerLocal,composer init (enter all the way)
Mkdir composerLocal & & cd composerLocalcomposer init
Create a packages directory create an expansion pack
Mkdir packages & & cd packages
Create an expansion package
Mkdir-p hail812/hello & & cd hail812/hellocomposer init # enter all the way
In the composer.json file of the extension package, the name and directory name are the same
Configure composer.json
Configure the autoload of the composer.json of the expansion pack
Configure the repositories of composer.json under the project root directory
Directory structure
Expansion pack composer.json
Composer.json under the root directory
Execute composer require
Composer require hail812/hello:dev-master
The vendor directory will be added to the project
Testing, creating a new index.php file
Thank you for reading this article carefully. I hope the article "how to load the local expansion pack on composer require" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.