F
F
ff0xff2019-01-13 15:06:42
linux
ff0xff, 2019-01-13 15:06:42

Compiling php + symfony 4 - what are the solutions?

Good day dear friends!
I will say right away that my question is extremely non-standard, there is almost nothing on the Internet.
I want to hear the opinion of people who have faced a similar problem.
I have a console application written in php7.2 + symfony 4.
I would like to compile it into a binary (or binaries?) so that it can be run under linux
. The main task is not just to compile the binary, but to protect the code.
Somewhere n years ago I saw a software that allowed php5 to compile an exe file under windows
It was cool, but right now it’s not relevant, with php7 It doesn’t work and I don’t have windows
Plus the complexity is added by the fact that I have a whole framework there.
Actually questions:

  1. What software is there for compiling php into a binary, given that I have a composer and a whole framework, the target OS is linux
  2. Are there ready-made solutions to collect the whole framework into one file? (not binary just php file)?*
  3. What software is there for these purposes, I consider all paid and free ones.
* I found out that in php 7.2 there is a standard method (lib) that allows you to compile a file into a binary, the trouble is that it must be one file.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
CityCat4, 2019-01-14
@CityCat4

I wonder how this conversion to binary will protect the code? :)

O
OnYourLips, 2019-01-13
@OnYourLips

docker
Doesn't work the way you described, but it's what you want.

E
Evgeny Rekhtin, 2019-01-14
@metalfm

Code obfuscation and formation of one phar archive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question