Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Compile or encrypt Phalcon PHP code source files

Hi,

It's possible to compile or encrypt my php source files ? Our customers want to use my code on their server that is why I need to hide my code.

Any idea ?



13.9k

Thanks for your answer. On this website I see this http://www.phpprotect.info/webfuscator/webfuscator/

It is the same result as the software ?

That's just a web interface for "Php Protect". The results should be the same.

Check this out: https://www.ioncube.com/php_encoder.php

ionCube is commonly used to protect commercial PHP apps.



38.4k
Accepted
answer

Why not write it in zephir and distribute the binary? (just rhetorical question, php cannot be converted to zephir that easily :)



13.9k
edited Sep '16

@TomasRimkus : Roger that.

@stamster : We prefert to use a free software.

@LajosBencz : I think this is a really good idea but I don't know this language :/

edited Sep '16

My impression is that It's a mix of C and PHP... I literally learned it in a few days (I'm sure some nuisances escaped me though). What zephir is missing are variable references and anonymous functions, which makes porting PHP code to zephir hard, because you'll have to refactor it a bit



13.9k

And it's possible to write REST API in Zephir ?



1.7k

Yes, it is possible to write REST API. 99% of Phalcon is writen in Zephir, so REST API should not be the problem



13.9k
edited Sep '16

Thank you all. I think Zephir is the really good idea. So... I'll learn Zephir and recode my REST API. And thanks a lot to the Phalcon Team for having created this language !