Download the PHP package onelearningcommunity/grease without Composer

On this page you can find all versions of the php package onelearningcommunity/grease. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package grease

Grease

tests Latest Version Total Downloads

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-interned middleware index β€” register Grease\Routing\GreaseRoutingServiceProvider::class and deploy with php artisan grease:route-cache (a route:cache twin) to make FPM middleware resolution ~free. That same provider also swaps in a greased URL generator (no app-entry edit needed β€” url is resolved lazily): route() replays a cached per-name [segments, params] shape instead of re-running the full assembly pipeline every call, and grease:route-cache pre-seeds that shape index too. Byte-identical or it defers. The view tier has the same: deploy with php artisan grease:view-cache (a view:cache twin) and view resolution becomes an opcache-interned lookup β€” no per-render filesystem stat-walk.

Each cache command also hooks php artisan optimize: with the provider registered, a standard optimize runs the grease cache in its slot (and optimize:clear the matching clear twin), so your deploy needs no grease-specific step.

See The Container, The Request, The Router, The URL Generator, and The View Cache.

What you get

Representative deltas, measured on Linux (reproduce on your own build β€” one command):

These are :memory:/Linux figures β€” read them as Grease's share of the work, not your p99, and reproduce on your target. The Benchmarks guide has the methodology, the build-to-build variance, and the honest caveats.

Running Octane? The case is stronger still. A persistent worker amortizes the framework boot that dilutes Grease under FPM, so the work it removes becomes a visible share of every request β€” and HasGrease on your models alone is enough to justify it. See Grease & Octane.

Byte-identical, or it's a failing test

That promise is the whole product. Every cast type, edge value, null, and dirty-check is asserted equal to vanilla across PHP 8.2–8.5 and Laravel 12/13; the benchmarks run the same fixtures the parity tests prove identical. Where Grease can't guarantee byte-identity for an exotic case, it defers to vanilla β€” correct, just unaccelerated.

Learn more

Requirements

PHP 8.2+, Laravel 12/13.

License

Released under the MIT License β€” Copyright Β© 2026 One Learning Community LTD.

Built with Claude

Grease was built proudly in collaboration with Claude β€” a small proof of what a strong engineering mindset and AI can do together: measure first, keep the parity spine honest, and ship wins that compound.


All versions of grease with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/database Version ^12.69.2 || ^13.33
illuminate/events Version ^12.69.2 || ^13.33
illuminate/support Version ^12.69.2 || ^13.33
illuminate/view Version ^12.69.2 || ^13.33
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package onelearningcommunity/grease contains the following files

Loading the files please wait ...