Reputation: 1085
We're developing with the Symfony2 framework and selling the application to customers. We don't want that customers have the source code so we want to encrypt it. In Zend Framework we use Ioncube but this isn't working with Symfony2 because Symfony2 reads the PHP files to create a caching file (classes.php).
Is there any solution for encrypting the src directory?
Upvotes: 2
Views: 3435
Reputation: 1085
I got contact with the guys at SourceGuardian. On there website they said they could encrypt Symfony2 projects without modifying the source code. At the end, this wasn't true because annotations couldn't be loaded by the Symfony framework. SourceGuardian came with a solution and they will dive into the problem. For now, it isn't possible to encrypt Symfony2 projects if you use Annotations. You should convert all the annotations to Yaml or XML files. I did this and, after 3 days, it worked like a charm!
So: Don't use annotations in you Symfony2 project if you want to encrypt your source code!
Upvotes: 3