1. Go to this page and download the library: Download nytris/boost 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/ */
nytris / boost example snippets
declare(strict_types=1);
use Nytris\Boost\BoostPackage;
use Nytris\Boot\BootConfig;
use Nytris\Boot\PlatformConfig;
use Symfony\Component\Cache\Adapter\ApcuAdapter;
$bootConfig = new BootConfig(new PlatformConfig(__DIR__ . '/var/cache/nytris/'));
$bootConfig->installPackage(new BoostPackage(
// Allows changing to avoid collisions if r as an example.
statCachePoolFactory: fn (string $cachePath) => new ApcuAdapter(
namespace: 'stat',
defaultLifetime: 0
),
// Whether to hook `clearstatcache(...)`.
hookBuiltinFunctions: true
));
return $bootConfig;
declare(strict_types=1);
use Nytris\Boost\Boost;
use Symfony\Component\Cache\Adapter\ApcuAdapter;
ABLE_NYTRIS_BOOST') === 'yes') {
(new Boost(
realpathCachePool: new ApcuAdapter(
namespace: 'nytris.realpath',
defaultLifetime: 0
),
statCachePool: new ApcuAdapter(
namespace: 'nytris.stat',
defaultLifetime: 0
),
hookBuiltinFunctions: false
))->install();
}
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.