Download the PHP package appstract/laravel-crawl-render without Composer
On this page you can find all versions of the php package appstract/laravel-crawl-render. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appstract/laravel-crawl-render
More information about appstract/laravel-crawl-render
Files in appstract/laravel-crawl-render
Package laravel-crawl-render
Short Description Pre-render your site for web crawlers
License MIT
Homepage https://github.com/appstract/laravel-crawl-render
Informations about the package laravel-crawl-render
[Wip] Laravel Crawler Pre-render
A simple package to pre-render your Javascript site for web crawlers like Google bot to improve your SEO.
It uses Spatie's Crawler and Browsershot to crawl your website and store the HTML. Crawlers (detected by Jaybizzle's Crawler Detect) are getting the pre-rendered version served.
Installation
You can install the package via composer:
You need Puppeteer to be installed for Browsershot to work, see: https://github.com/spatie/browsershot#requirements
Usage
First add the middleware to any routes you want to Pre-render.
Then run the crawler to pre-render your site:
You can run this command regularly, for example after a deploy or with a schedule:
Testing
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
License
The MIT License (MIT). Please see License File for more information.