# encode php scripts with opcache compatibility

- Thread: https://externals.io/message/74414
- Original archive: https://news-web.php.net/php.internals/74414
- Started by Pierre Joye on 2014-05-21T14:49:01+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #74414 — Pierre Joye — 2014-05-21T14:49:01+00:00

URL: https://externals.io/message/74414#74414

>
> Hi,
>
> yes, we are shipping code to customers and they should not read the
source.
> The level of protection gained from obfuscated code is not enough, but
just
> delivering the opcodes would be ok.
>
> I know that the opcode array might be dumped, this is just to raise the
> bar. If I just obfuscate the code there's still the possibilty left to
edit
> the code directly.
>

Php does not support that. There are solutions out there (like in pecl) but
I have no idea about their state or support.
