Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii2 third-party PHP class

Tags:

php

class

yii

yii2

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.

like image 404
www.data-blogger.com Avatar asked Dec 05 '13 16:12

www.data-blogger.com


1 Answers

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;

like image 122
hemc4 Avatar answered Oct 12 '22 23:10

hemc4