modera/mjr-cache-aware-class-loader
A cache-aware PHP class loader for Laravel that speeds up autoloading by caching class lookups and refreshing them when files change. A drop-in replacement for Composer's autoloader aimed at cutting filesystem overhead in larger applications.
ModeraMjrCacheAwareClassLoaderBundle) that wraps the MJR/ExtJS dynamic class-loader endpoint with HTTP cache validators (ETag, Last-Modified, Cache-Control, 304). This description/reality gap is the first TPM finding: any adoption decision must be made against the code, not the package summary. A vendor whose metadata misstates its target framework has effectively failed a basic due-diligence check.opportunity: 15.83 and score: 0 are consistent with "reference only." Any use implies an internal fork with permanent ownership, plus compatibility work against PHP 8 / Symfony 5+ / Laravel that the code was never written for.ContainerAware); (2) attacker-controlled input — the className query parameter becomes a filesystem path, so path traversal and arbitrary file read must be verified before any exposure; (3) cache-correctness risk — mtime-derived validators diverge across nodes provisioned at different times, causing clusters to bounce clients between nodes; (4) cache-scope risk — a public Cache-Control on an authenticated class-loader route leaks source through shared proxies.Cache-Control/ETag and a CDN purge cover the same ground? Who owns legacy MJR/ExtJS support, and does the description mismatch or the read-only status trip our supply-chain policy? What is the license and fork posture if we borrow code?Ext.Loader requests, what validators the current stack emits, where cache headers get overwritten downstream (framework listeners, dev profiler, our own response middleware). Then implement the equivalent contract: build-stamped ETag (deploy ID or content hash, never file mtime), correct 304 with empty body and early return, explicit private vs public decision, and a defined invalidation event on release.dev-master), autoloading, bundle registration, and any decorated service or compiler pass before writing a line of integration code. Do not assume PHP 8 or modern Laravel/Symfony parity.304 rates against the current system. (3) Ship behind a flag in parallel with the existing path, purging cache on deploy. (4) Cut over with regression tests for resource loading and post-deploy invalidation. (5) Otherwise close the evaluation and route the underlying need to the asset/CDN workstream.assets_version-style query parameter on the loader path or an automated CDN/Varnish purge on release. Short max-age alone ships half-stale Ext.define blocks and intermittent "class not found" errors several clicks into a session.Cache-Control, a deploy-stamped validator, and a purge-on-release hook deliver the same outcome with a maintained toolchain and far less custom surface area. The bundle offers no modern scaling advantage of its own; notably, mtime-based validators actively degrade behaviour in autoscaled, heterogeneously provisioned fleets.className; cross-node ETag divergence producing re-download storms; a public cache header leaking authenticated source; listeners or the dev profiler clobbering Cache-Control; a non-empty 304 body breaking proxies and the Ext loader; and rollback difficulty because cache invalidation semantics were never documented.How can I help you explore Laravel packages today?