doujiu3768 2014-06-04 09:52
浏览 53

Symfony2源代码加密/编码

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?

  • 写回答

1条回答 默认 最新

  • dqrsceg6279196 2014-06-11 08:57
    关注

    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!

    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统