I want to install a third-party PHP class for my application. How should I do that in Yii2? I could not find anything in the documentation.
The easy way to do it is just register your class in any namespaces defined by Yii2 and use it in file as use app\namespace\classname;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With