Download the PHP package prerender/laravel-prerender without Composer

On this page you can find all versions of the php package prerender/laravel-prerender. 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 laravel-prerender

prerender-laravel

Laravel middleware for Prerender.io. Intercepts requests from bots and crawlers and serves prerendered HTML, so your JavaScript-rendered app is fully indexable by search engines and social media scrapers.

Compatible with Laravel 11+ and PHP 8.2+.

Installation

Publish the config file:

Setup

Add your token to .env:

The middleware registers itself automatically via the service provider.

Configuration

Key Env var Default Description
enable PRERENDER_ENABLE true Disable entirely (e.g. local dev)
prerender_url PRERENDER_SERVICE_URL https://service.prerender.io Service URL (override for self-hosted)
prerender_token PRERENDER_TOKEN null Your Prerender.io token
prerender_soft_http_codes PRERENDER_SOFT_HTTP_STATUS_CODES true Pass 3xx/404 codes through as-is
full_url PRERENDER_FULL_URL false Send full URL including query string
timeout PRERENDER_TIMEOUT 0 Guzzle timeout in seconds (0 = none)

Whitelist / Blacklist

Only prerender URLs matching the whitelist (empty = all URLs pass):

Never prerender URLs matching the blacklist (static assets are blacklisted by default):

Patterns support * wildcards. Blacklist patterns are matched with the query string stripped, so *.woff2 also matches /font.woff2?v=3.

How it works

Requests are prerendered when all of the following are true:

If the Prerender service is unreachable, the middleware falls back gracefully.

License

MIT


All versions of laravel-prerender with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^11.0|^12.0
symfony/psr-http-message-bridge Version ^7.0
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 prerender/laravel-prerender contains the following files

Loading the files please wait ...