Package Code For Deployment

What is the best way to go around when it comes to packaging the Yii code for deployment? I have developed an application using Yii and would like to deploy this without making the full code available on the server. Is there any way to "hide or encrypt" the code?