PHPackages                             innoge/laravel-speculation-rules-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. innoge/laravel-speculation-rules-api

ActiveLibrary[API Development](/categories/api)

innoge/laravel-speculation-rules-api
====================================

A Laravel package as streamlined solution to utilize the speculation rules api.

v1.0.3(3mo ago)14154MITPHPPHP ^8.2CI passing

Since Aug 9Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/InnoGE/laravel-speculation-rules-api)[ Packagist](https://packagist.org/packages/innoge/laravel-speculation-rules-api)[ Docs](https://github.com/innoge/laravel-speculation-rules-api)[ GitHub Sponsors](https://github.com/InnoGE)[ RSS](/packages/innoge-laravel-speculation-rules-api/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (20)Versions (12)Used By (0)

Laravel Speculation Rules API
=============================

[](#laravel-speculation-rules-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/16d4be61029235c92fecff7bd47972bbb8da89ca84734d3e500ce476ba44ce83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e6e6f67652f6c61726176656c2d73706563756c6174696f6e2d72756c65732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/innoge/laravel-speculation-rules-api)[![GitHub Tests Action Status](https://camo.githubusercontent.com/d4eb0b08e735f1bb9803db1d3edfb4075ba212406b9db3f3812efaca46fb9152/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e6e6f67652f6c61726176656c2d73706563756c6174696f6e2d72756c65732d6170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/innoge/laravel-speculation-rules-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e3367b293b2419b5e663122838883e5acf6b8a7fb7348c554a206491b76c7fb0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696e6e6f67652f6c61726176656c2d73706563756c6174696f6e2d72756c65732d6170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/innoge/laravel-speculation-rules-api/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ca5947ef547cd8f5c48e47b142f1b02f5441f936265e19e50c52ef0ab17c3ded/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6e6f67652f6c61726176656c2d73706563756c6174696f6e2d72756c65732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/innoge/laravel-speculation-rules-api)

This Laravel package provides a streamlined solution to utilize the [Speculation Rules API](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API), allowing you to speed up your website performance significantly.

Note

The Speculation Rules API is an experimental technology.
Further information can be found at the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require innoge/laravel-speculation-rules-api
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-speculation-rules-api-config"
```

This is the contents of the published config file:

```
