Home>Article>PHP Framework> How to install third-party libraries in thinkphp

How to install third-party libraries in thinkphp

藏色散人
藏色散人 Original
2022-12-21 09:24:12 2418browse

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.

How to install third-party libraries in thinkphp

#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:

How to install third-party libraries in thinkphp

Introduce require_once '…/extend/aipbaidusdk/AipNlp.php in the controller ';

How to install third-party libraries in thinkphp

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn