laragear/preload
Laragear Preload helps Laravel apps use PHP OPcache preloading. It generates a preload script, lets you include application and vendor files, and provides Artisan commands to build and refresh the preload list for faster bootstrapping.
opcache.preload control), so it belongs behind any roadmap item that assumes platform migration.Consider it when:
opcache.preload is an ini directive requiring a server restart and, typically, root or platform-level access. No ini control, no benefit.Look elsewhere when:
opcache.memory_consumption, tuning realpath_cache, or disabling validate_timestamps in production are lower-effort levers to try first.For executives: A small, low-risk, no-license-cost optimization that can improve response times and reduce the number of servers needed to serve the same traffic. Blast radius is contained: rollback is removing one ini line and restarting. The ask is a timeboxed spike — profile, generate the preload list, run a before/after load test — and we commit to infra or sizing changes only if the measured gain justifies the operational overhead. No new vendor, no commercial dependency.
For engineering: One Artisan command generates the preload list from the compiled classmap; wire it into the build and restart step of deploy. Expect the gains to come from skipping per-request compilation and classmap lookups. Main risks are (1) a stale preload list after a dependency change causing startup fatals — mitigate by generating at build time, never hand-editing; (2) opcache memory ceilings — watch opcache_get_status(); (3) the opcache.preload_user requirement under PHP-FPM. v4.0.0 is a new major release whose notes are only a changelog link — treat it as breaking, review the diff, and default to v3.0.1 for any immediate rollout. Ship behind measurement: capture p50/p95/p99 and RPS-per-node before and after on production-like data, then decide whether it stays.
How can I help you explore Laravel packages today?