Download the PHP package nytris/boost without Composer
On this page you can find all versions of the php package nytris/boost. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package boost
Nytris Boost
Improves PHP performance, especially when open_basedir
is in effect.
Why?
open_basedir
disables the PHP realpath and stat caches, this library re-implements them in a configurable way.- Even when
open_basedir
is disabled, the native caches are only stored per-process. This library allows them to be stored using a PSR-compliant cache.
Note that for the native filesystem wrapper (when this library is not in use):
- The
stat
cache only keeps a single file, the most recent stat taken. - There is a separate similar one-stat cache for
lstat
results.
When in use, this library caches stats for all files accessed and not only the most recent one.
Usage
Install this package with Composer:
When using Nytris platform (recommended)
Configure Nytris platform:
nytris.config.php
When using Boost standalone
Load Boost as early as possible in your application, for example a /bootstrap.php
:
Known issues / limitations
Using a filesystem-based cache such as Symfony Cache's FilesystemAdapter
for the realpath or stat caches, for example, may cause infinite recursion,
which can result in a segfault even with Xdebug enabled.
The solution is to avoid using filesystem-based caches for the filesystem data caches, which makes little sense in any case when the purpose of Boost is to reduce or avoid filesystem I/O.
See also
- PHP Code Shift, which is used by this library.
All versions of boost with dependencies
asmblah/php-code-shift Version ^0.1
nytris/nytris Version ^0.1
psr/cache Version ^1.0