I have a question. . My project loads classes purely through a custom namespace. Then I will introduce a third-party class library. This class library is loaded according to the PSR-4 specification. In this case. How can I reference this third-party class library in the project without changing my original loading rules?
Composer introduces a third-party class library, and introduces composer's autoload.php in the entry file to automatically load the file
The project has an entry file, just require it in the entry file
First require the third-party class library, and then use it. Then you can instantiate this class, for example: