arjunmat/prerender

There is no license information available for the latest version (0.1.6) of this package.

This package will submit a url to prerender.io for recaching. Only for Laravel.

0.1.6 2023-03-11 07:25 UTC

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