Download the PHP package tungsten/growdough without Composer

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

GrowDough plugin for Craft CMS 4.x

This plugin allows collecting donation designations in a Donations List that works similar to a shopping cart.

Requirements

This plugin requires Craft CMS 4.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require tungsten/growdough
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for GrowDough.

Settings

When the test mode is enabled, the following hidden input is added to the form:

Variables

getDonationItems

Retrieves the donation items stored in the session as a collection (array). Use the collection in a for loop to build the items list.

donationItemInList

Check if the donation item with the provided id is already in the list of donation items.

addDonationItemFormTag

Opening form tag to add a donation item to the donation items list.

Params

Example

formTag

Opening form tag to submit donation to GrowDough. Includes the GrowDough post URL and all hidden fields required for submission.

Options

Most Common Use

The form tag will be most commonly used with templateVariables and paymentType.

Full Variable Syntax

getDonationItemsJson

Format the donation items list as an encoded JSON string.

donationsUrl

Retrieves the GrowDough donations URL from the plugin settings. The URL is used to post the donation to the GrowDough system for the particular account.

givingCardPurchaseUrl

Retrieves the GrowDough Giving Card purchase URL from the plugin settings. The URL is used to post the desired Giving Card amount to the GrowDough system for the particular account.

Actions

Add Donation Item to Dontation Items

Add a specific donation item to the Donations List. If an item with the provided itemId already exists in the list, it will NOT be added.

Example using addDonationItemFormTag variable

Example using HTML form directly

Redirecting to another page upon submission

By default, upon form submission the plugin will automatically reload the current page.

To override this default behavior, include redirectInput function after the PerForm addDonationItemFormTag and specify your redirect destination.

OR

removeDonationItem

Remove a specific donation item from the Donations List. If an item with the provided itemId does not exist in the list, the action will be ignored.

Optional: Add a redirectUrl parameter if you'd like to redirect to a specific page after the item is added. If the parameter is omitted, the browser will redirect to the origin page (using http_referrer).

removeAllDonationItems

Remove all donation items from growDoughItems session variable. This is useful when checking out a multi-designation donation and the session needs to be remove so that it does not stick around after the donation is complete.

This action needs to be called via AJAX while the GrowDough form is being submitted.

Brought to you by Tungsten Creative Group


All versions of growdough with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
craftcms/cms Version ^4.0.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 tungsten/growdough contains the following files

Loading the files please wait ....