PHPackages                             mango-chutney/craft-raisely-donation-forms - 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. mango-chutney/craft-raisely-donation-forms

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

mango-chutney/craft-raisely-donation-forms
==========================================

A field plugin to fetch and embed Raisely donation forms in your Craft CMS content.

1.0.0(2y ago)0225mitPHPPHP &gt;=8.0.2

Since Oct 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mango-chutney/craft-raisely-donation-forms)[ Packagist](https://packagist.org/packages/mango-chutney/craft-raisely-donation-forms)[ RSS](/packages/mango-chutney-craft-raisely-donation-forms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Raisely Donation Forms
======================

[](#raisely-donation-forms)

A field plugin to fetch [Raisely](https://raisely.com/) donation data and embed forms in your [Craft CMS](https://craftcms.com/) content.

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

[](#installation)

This plugin requires Craft CMS 4.4.15 or later, and PHP 8.0.2 or later.

1. To install, visit the plugin store from your Craft project, or using

```
composer require mango-chutney/craft-raisely-donation-forms
```

2. In the Control Panel, go to **Settings** → **Plugins** and click the “Install” button for Raisely Donation Forms, or run:

```
php craft plugin/install raisely-donation-forms
```

Usage
-----

[](#usage)

### Field

[](#field)

1. Add your Raisely API key in your CMS settings or create a create a `config/raisely-donation-forms.php` file with the following:

```
'raiselyApiKey' => 'RAISELY_API_KEY'
```

*Your API key can be found by going to Settings &gt; API &amp; Webhooks in a campaigns side navigation. Any campaign API key can be used for your whole Raisely account*

2. Create a Raisely Donation Form field and select a form

*Use the `Refresh Campaigns` button if the campaigns listed in the dropdown don't match those in your Raisely account*

3. Embed a form in your template using `{{ entry.yourField.renderForm() }}`

By default Raisely forms are rendered with an initial height of 800px which can lead to unwanted layout shift. To fix this you can pass a height variable `{{ entry.yourField.renderForm(400) }}`.

*Use `{{ entry.yourField.isEmpty() }}` to check if the field is populated*

or fetch campaign donations with `{{ entry.yourField.getDonations() }}`, this will return an array that you can loop through to display donations with something like

```
  {% for item in entry.yourField.getDonations() %}
    {{ item.anonymous == true ? 'Anonymous' : item.firstName }} donated {{ item.publicAmount|currency }}
  {% endfor %}
```

The amount of donations fetched is limited to 10 by default, but you can change this with a `donationLimit` setting in your `config/raisely-donation-forms.php` file, or by passing a limit variable `entry.yourField.getDonations(5)` - there is currently no pagination so results will be limited to the first page of results from the API.

The sort order of donations fetched can be changed using `sort` and `order` variables, for example `entry.yourField.getDonations(10, 'date', 'asc')` would return the 10 oldest donations, or `entry.yourField.getDonations(5, 'amount', 'desc')` would return the 5 top donations.

*A reference of available data can be found in the [Raisely API docs](https://developers.raisely.com/reference/getdonations). NOTE: Private data is not fetched*

### Variables

[](#variables)

If you prefer, the `renderForm()` and `getDonations()` variables can be used directly in your template using a Raisely campaign path without the need for a field, and without an API key if you aren't using `getDonations()`.

```
{{ craft.raisely.renderForm('campaign-path') }}

or

{{ craft.raisely.getDonations('campaign-path') }}
```

Both functions work the same as their field counterparts.

### Caching

[](#caching)

Forms and donations are cached for 1 week and 6 hours respectively to avoid making too many API calls, and for a better user experience - without donation caching, a call would be made every time the template is loaded leading to longer page load times.

If you need to adjust cache times you can use the following settings in your `config/raisely-donation-forms.php` file

```
'campaignCacheDuration' => 604800,
'donationCacheDuration' => 21600
```

You can clear the cache in the Craft Control Panel by going to **Utilities** → **Clear Caches**, or using

```
php craft clear-caches/raisely-campaigns
```

and

```
php craft clear-caches/raisely-donations
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% 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

Unknown

Total

1

Last Release

949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/935d87875b8ab7d1361d96ec9a8cbddd6b4854c3a698dbaa9a4d52b332ea5c58?d=identicon)[mangochutney](/maintainers/mangochutney)

---

Top Contributors

[![d-karstens](https://avatars.githubusercontent.com/u/21274925?v=4)](https://github.com/d-karstens "d-karstens (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/mango-chutney-craft-raisely-donation-forms/health.svg)

```
[![Health](https://phpackages.com/badges/mango-chutney-craft-raisely-donation-forms/health.svg)](https://phpackages.com/packages/mango-chutney-craft-raisely-donation-forms)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

395798.1k10](/packages/spicyweb-craft-neo)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[verbb/vizy

A flexible visual editor field for Craft.

4348.6k](/packages/verbb-vizy)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

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