Classes under the php file use the

In

php, for example, I have a project file. I created a file in the root directory. Here are the third-party class files I downloaded online or my own class files. How can I use them in the controller?

Php
Aug.24,2021

2018, you have to try the dependency management tool composer


include or require try


use namespace to load.
one way is to use: composer, to configure your composer.json, and then update to enter
one is to create your own folder to store third-party libraries such as: lib, to modify your library files according to the specific.
there are instructions in general third-party class libraries.

Menu