Download the PHP package rapidez/statamic-quote without Composer

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

You can install this package using Composer:

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

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

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:

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:

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 section in the Rapidez docs.

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:

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

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:

Styling

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

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.


All versions of statamic-quote with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
barryvdh/laravel-dompdf Version ^3.1
rapidez/core Version ^5.0
rapidez/statamic 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 rapidez/statamic-quote contains the following files

Loading the files please wait ...