{"repo":"One-Learning-Community/grease","free":true,"listed":false,"github":"https://github.com/One-Learning-Community/grease","clone":"git clone https://github.com/One-Learning-Community/grease.git","description":"Opt-in performance for Laravel's hot paths. One trait, byte-identical output — and it really shines under Octane. Get greased.","language":"PHP","stars":12,"topics":["eloquent","laravel","laravel-package","optimization","orm","performance","php","frankenphp","laravel-octane","octane"],"license":"MIT","category":"databases-storage","readme_excerpt":"Grease Opt-in performance across Laravel's hot paths — a menu of byte-identical tiers. Grease is a menu of independent, byte-identical optimizations spanning the whole request lifecycle — Eloquent hydration/casting/serialization, the event dispatcher, the Blade compiler, config() reads, validation, the container, the request, and the router. They share one idea: Laravel re-derives the same stable facts on every row, attribute, component, render, request, and query; Grease computes each once and reuses it. Take the tiers whose hot paths you actually run — the model trait is the zero-config on-ramp, not the whole package. Zero framework changes; anything that doesn't opt in runs pure vanilla. 📖 Full documentation → Install That's the model tier — the easiest win and a fine place to stop: no config, no provider, no cache to warm. Its hydration, casting, and serialization now run the greased fast paths, byte-identical to vanilla Eloquent. Prefer inheritance? Extend \\Grease\\GreasedModel instead. The rest of Grease lives across the request, not just in Eloquent. Each tier is a separate opt-in — take the ones whose hot paths you run. Several are a single (non-auto-discovered) provider: A few more foundation tiers go deeper into the request lifecycle. They can't be a provider (they're constructed before any provider runs), so each is a one-line swap at the application's own entry point — the heaviest opt-in, taken only if you want it: The router additionally has an eager, opcache-in","default_branch":null,"files":null,"tree":[],"storefront":"/r/One-Learning-Community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/One-Learning-Community/grease/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}