Use casbin in Yii PHP Framework, Casbin is a powerful and efficient open-source access control library.