Download the PHP package ivandmitry7777/php-cactus without Composer
On this page you can find all versions of the php package ivandmitry7777/php-cactus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ivandmitry7777/php-cactus
More information about ivandmitry7777/php-cactus
Files in ivandmitry7777/php-cactus
Package php-cactus
Short Description Compile and protect your php code from been stolen. No risk deployments to client's servers
License MIT
Informations about the package php-cactus
PHP Cactus 🌵
Protect your PHP code from being stolen. Deploy with no fear of not owning servers. This library compiles your PHP code to opcodes and removes code from all php files included in your project. All produced opcode files are saved on the server's filesystem and used by OPcache!
Before
index.php
<?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
After
index.php
<?php
//compiled by Cactus
index.php.bin
OPCACHEaa076b0e7a9c60b4d014e9d46754d5ffòËE"=h"`ÿ†8˛ˇˇˇÄ˛ˇˇˇÄˇˇˇˇw—∑e9YÅ©—!a°°¡!QÅÅ°°¡¡Jp=y
PAJ`=y
PAë†Å]†`uêÅJ`=◊P†_†PAë†ÅȆ@+¸PIÙ"IÙ†/I⁄`†/‚`1pz
P1tG†1<⁄p† 1‚p(3pÁ
84qG∞4<€ê∞†4/†P4tG†4<”†H5pG†5<⁄Ć3‚pX7püêP7BüÄ`7BF7<Kˇˇˇˇ8>V∆èMi…˝8é/laravel/public/index.phpÈ1QyV∆èMi…˝8é/laravel/public/index.phpVpJįRÄdefineVYZ€∂
¨≥î
LARAVEL_STARTVÆó‰H—wÉ microtimeVÑÀTñuä¿file_existsVΩP∂äÔÓSø4/laravel/public/../storage/framework/maintenance.phpVo~†∑”5∂&/laravel/public/../vendor/autoload.phpV'†fieE^Ô$/laravel/public/../bootstrap/app.phpV£ö|ÄmakeVfl.`ôå¥öê Illuminate\Contracts\Http\KernelVqÿêSÄhandle!V⁄ó≤:·†q”Illuminate\Http\RequestV:¥ˇi?⁄flilluminate\http\requestV9÷ı≤±–ÄcaptureVO€ù|ÄsendVÓ ‘=—ŸwÉ terminateVhÏ1\
Useful Notes
-
Your php files content will be replaced!!!!!!! Be sure you have copies on your development machine
-
If you want to update a file after compilation. Replace the existing (empty file) with the updated one, and run PHP cactus again
- The opcodes should be served by the same interpreter which has created them.
- A good idea is to create docker images with your compiled app. Your could update your app by updating your docker image version
Install
Using Composer
Add to your php.ini configuration
opcache.enable=1
opcache.enable_cli=1
opcache.validate_timestamps=0
opcache.file_cache = "Enter here the path where the opcodes will be saved"
Run php Cactus
YourProjectRootDir/vendor/bin/cactus
Run php Cactus without any prompt (Force mode for your deployment process)
YourProjectRootDir/vendor/bin/cactus --noPrompt
Run php Cactus for specific project subdirectory (dir parameter should be relative to project root directory)
YourProjectRootDir/vendor/bin/cactus --dir app/Controllers
All versions of php-cactus with dependencies
ext-zend-opcache Version *
ext-fileinfo Version *