arjunmat / prerender
This package will submit a url to prerender.io for recaching. Only for Laravel.
Installs: 2 762
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^7.5.0
This package is not auto-updated.
Last update: 2025-06-14 17:38:35 UTC
README
This package can be used to send requests to Prerender.io to recache your pages from your Laravel application
Getting Started
Prerequisites
GuzzleHttp 6.0 or above
Installing
To install the package, run:
composer require arjunmat/prerender
After installation, publish the package to create the config file
php artisan vendor:publish --provider=PrerenderServiceProvider
For Laravel5.4 and below, add the following to config/app.php
In the providers
array,
Arjunmat\Prerender\PrerenderServiceProvider::class,
In the aliases
array,
'Prerender' => Arjunmat\Prerender\PrerenderFacade::class,
Usage
use Arjunmat\Prerender\Prerender;
$prerender = new Prerender();
$url = "http://www.google.com";
if(!$prerender->submitUrl($url)) {
$error = $prerender->getError();
}
Authors
- Arjun Mathai - Initial work - arjunmat
License
This project is licensed under the MIT License - see the LICENSE file for details