PHPackages                             rapidez/statamic-quote - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rapidez/statamic-quote

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rapidez/statamic-quote
======================

Allows requesting a quote when using Rapidez with Statamic

2.1.0(3mo ago)01.3k↓50%[1 PRs](https://github.com/rapidez/statamic-quote/pulls)GPL-3.0-or-laterPHPPHP ^8.0CI passing

Since Sep 10Pushed 2mo agoCompare

[ Source](https://github.com/rapidez/statamic-quote)[ Packagist](https://packagist.org/packages/rapidez/statamic-quote)[ Docs](https://github.com/rapidez/statamic-quote)[ RSS](/packages/rapidez-statamic-quote/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (11)Used By (0)

Rapidez Statamic Quote
======================

[](#rapidez-statamic-quote)

Note

This package requires the Rapidez+Statamic combination to be installed and set up.

Allows you to add a "Request quote" button anywhere with products present.

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

[](#installation)

You can install this package using Composer:

```
composer install rapidez/statamic-quote
```

Then, you'll need to publish the blueprint and form field. You're probably also going to want to publish the config file:

```
php artisan vendor:publish --tag=quote-content
php artisan vendor:publish --tag=quote-config
```

After publishing these, we would also recommend adding a default country to the country dictionary field in the form blueprint.

Usage
-----

[](#usage)

This package does not create any "request invoice" buttons on the frontend by default. These will need to be added by the developer. The simplest way to do this is by adding this button to your product page:

```

    @lang('Request quote')

```

You can also pass an array to `add-products`, which allows you to push an array of products to the quote. This can be useful for turning a cart into a quote request:

```

    @lang('Request quote')

```

Automatic PDF
-------------

[](#automatic-pdf)

By default, this package will automatically generate a quote for you based on the products. However, you may not want this to happen for various reasons. To this end, you can disable this functionality by setting the `auto_send_quote` config setting to `false`.

This can be done store-specific as well, see the [multistore configuration](https://docs.rapidez.io/4.x/configuration.html#multistore) section in the Rapidez docs.

### Hooking into the quote data

[](#hooking-into-the-quote-data)

You can use the `quote.data` Eventy filter to hook into the data that's being sent to the automatic quote:

```
Eventy::addFilter('quote.data', function ($quoteData) {
    return [
        ...$quoteData,
        'products' => $quoteData['products']->map([...])
    ];
});
```

You can also return `null` to not send the quote under certain conditions, for example:

```
Eventy::addFilter('quote.data', function ($quoteData) {
    if ($quoteData['products']->contains(fn($item) => $item['product']->no_quote)) {
        // Don't send
        return null;
    }

    return $quoteData;
});
```

### Hooking into the mail itself

[](#hooking-into-the-mail-itself)

You can use the `quote.mail` Eventy filter to hook into the mailable object that gets used for automatic quotes. For example, if you want to add a `bcc` to the sent email:

```
Eventy::addFilter('quote.mail', function ($mail) {
    return $mail->bcc('bcc@example.com');
});
```

Styling
-------

[](#styling)

### Modifying the PDF

[](#modifying-the-pdf)

You can overwrite the `rapidez-quote.exports.quote` view to do most of the basic modifications you might need. However, if you want to completely upend the styling of the pdf (or change the logo to not be an SVG), you can do that by overwriting `rapidez-quote.exports.base`.

Note that the "primary" color and the path to the logo svg are defined by the quote configuration file.

### Modifying the Email

[](#modifying-the-email)

Similarly, the email that gets sent to the customer requesting the quote can be modified by overwriting the `rapidez-quote.mail.quote` view. This is defined as markdown content by default, but that can be changed by modifying the `email_markdown` config setting.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance84

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~22 days

Total

8

Last Release

94d ago

Major Versions

1.3.1 → 2.0.02025-12-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72222911?v=4)[Rapidez](/maintainers/rapidez)[@rapidez](https://github.com/rapidez)

---

Top Contributors

[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (23 commits)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (7 commits)")

---

Tags

statamicquoterapidez

### Embed Badge

![Health badge](/badges/rapidez-statamic-quote/health.svg)

```
[![Health](https://phpackages.com/badges/rapidez-statamic-quote/health.svg)](https://phpackages.com/packages/rapidez-statamic-quote)
```

###  Alternatives

[jolicode/jolitypo

Microtypography fixer for the web.

3471.1M5](/packages/jolicode-jolitypo)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)[mitydigital/sitemapamic

An XML sitemap generator for Statamic that includes all collections and related taxonomy pages.

1485.2k](/packages/mitydigital-sitemapamic)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2912.8k](/packages/aerni-livewire-forms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
