Download the PHP package sandulat/laratron without Composer
On this page you can find all versions of the php package sandulat/laratron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sandulat/laratron
More information about sandulat/laratron
Files in sandulat/laratron
Package laratron
Short Description Laravel-Rendertron SSR Proxy
License MIT
Homepage https://github.com/sandulat/laratron
Informations about the package laratron
Laratron
🖼Laravel SSR using Rendertron 🖼
## About Since we know that not all crawlers can render Javascript, we have to implement SSR (Server-Side Rendering). Implementing SSR in Laravel may be a headache and the easiest solution could be [Rendertron](https://github.com/GoogleChrome/rendertron). **Laratron** is a tiny middleware for your Laravel app that detects whether the visitor is a crawler and passes the request to Rendertron. About Rendertron (from official Readme): > Rendertron is designed to enable your Progressive Web App (PWA) to serve the correct content to any bot that doesn't render or execute JavaScript. Rendertron runs as a standalone HTTP server. Rendertron renders requested pages using Headless Chrome, auto-detecting when your PWA has completed loading and serializes the response back to the original request. To use Rendertron, your application configures middleware to determine whether to proxy a request to Rendertron. Rendertron is compatible with all client side technologies, including web components. ## Installation First of all we need to install Rendertron. Please consult the [official documentation](https://github.com/GoogleChrome/rendertron) for more info. To install Laratron run this inside your project: ## Configuration Laratron exposes only one simple option, the URL of Rendertron, which can be set in your env file: ## Usage After installation you can use the middleware **`laratron`** on any route that you'd like to be server-side rendered. Or you can apply it on the entire `web` middleware group in `App\Http\Kernel`: ## Credits Created by [Stratulat Alexandru](https://twitter.com/sandulat).
All versions of laratron with dependencies
guzzlehttp/guzzle Version ~6.0
illuminate/support Version 5.8.*
jaybizzle/crawler-detect Version 1.*
laravel/framework Version ~5.8.0|~5.9.0