Home>Article>PHP Framework> How to install third-party libraries in thinkphp
How to install third-party libraries in thinkphp: 1. Download the sdk and put the sdk in the extend directory; 2. Introduce "require_once '…/extend/aipbaidusdk/AipNlp.php' in the controller; "That's it.
#The operating environment of this tutorial: Windows 10 system, thinkphp version 6, Dell G3 computer.
How to install third-party libraries in thinkphp?
thinkphp6 Introduce third-party class library tp6 SDK introduction
How to introduce third-party class library in tp6
If you download the sdk manually, Put the sdk in the extend directory
Baidu natural language processing as an example:
Introduce require_once '…/extend/aipbaidusdk/AipNlp.php in the controller ';
This way it has been successfully introduced
Recommended learning: "thinkPHP Video Tutorial"
The above is the detailed content of How to install third-party libraries in thinkphp. For more information, please follow other related articles on the PHP Chinese website!