1. Go to this page and download the library: Download sibidharan/ext-zealphp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sibidharan / ext-zealphp example snippets
// Override a PHP built-in with your own callback (allowlisted functions only)
zealphp_override('header', function (string $h, bool $replace = true, int $code = 0) {
// route to the per-request response object
});
zealphp_restore('header'); // restore one
zealphp_restore_all(); // restore all
zealphp_coroutine_superglobals(true); // isolate the 7 superglobals per coroutine
zealphp_coroutine_globals(true); // isolate $GLOBALS / global $x (scalars, arrays, objects)
zealphp_coroutine_statics(true); // isolate function-local static $x
zealphp_silent_redeclare(true); // first-wins on conditional function/class re-declare
zealphp_define_hook(true); // track + clear per-request define() constants
zealphp_include_isolation(true); // re-execute -resolve op-array run-time caches cold (0.3.25)
zealphp_reset_request_statics(); // reset function-local static $x per request (0.3.25)
zealphp_reset_request_class_statics(); // reset class static properties per request (0.3.25)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.