Well I tried to comment on your comment but I do not have enough points, but since I said you want to hide your third party code ...
There are currently 2 methods to do this:
Code obfuscation : That is to shuffle variables, names, and so on. inside your code so that the reading is not simple, there are several softwares and services on the web just search on Google, I put 2 service links so for example:
It is worth mentioning that this method of glare is not 100% safe or indecipherable, it will only make it harder to read and will MAY drive away potential curious.
Compilation : Which is roughly the transformation from one language to another semantically equal but applied and executed in the OS , in the case of PHP there are some compilers that do this.
The most famous for PHP is the ionCube which is a PAGA tool, where you pass your codes by it and it does that service to compile, but your server needs to have a module installed to be able to receive those compiled files back.
Remember that in these two methods you need to have the original code if you want to make modifications, and apply the obfuscation or compilation again before publishing.
But at the beginning, when PHP is running inside the server the person does not have access to the source only the final output, if only you have access to the codes, it's okay, not to mention that compiling or obfuscating someone will still have access to the folder, files and so on. because the structure is maintained only the content is unreadable.