How to license copied parts of Yii in my app

I’ve copied a few classes and parts of classes into my app then made moderate to heavy modifications, but I’m not sure how I should credit/license the code.

For example, I have a version of CDbAuthManager named DbAuthManager where I added an additional column to the table and modified the code accordingly. Right now I have the phpdoc for the class like so:


 * AuthManager class file.


 * @author Qiang Xue <>

 * @author Me <>

 * @link http ://

 * @link http ://

 * @copyright Copyright &copy; 2008-2011 Yii Software LLC

 * @license http ://

 * @copyright Copyright &copy; Me

 * @license http ://


Is this correct? Should I remove the original Yii author and license? If not, can I also have a link to my license?

In another example I have copied a few functions from a Yii class into my own class. I modified them slightly but they’re mostly original code. How should I give credit? Do I need to include the Yii license?

Yii code is licensed under BSD license so you can do whatever you want with it except using Yii name to promote your product.