PHPackages                             ddauria1/charity-package - 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. ddauria1/charity-package

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

ddauria1/charity-package
========================

UK Charity Package

02PHP

Since Mar 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ddauria1/charity-package)[ Packagist](https://packagist.org/packages/ddauria1/charity-package)[ RSS](/packages/ddauria1-charity-package/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

UK Charity Package
==================

[](#uk-charity-package)

PHP package that allows to create a tailored made charity widget. The widget will contains the following possibilities:

- Pick a cause between: . Save the Children . Crisis.co.uk . Age UK . or Add your own one
- Personalize: Colors, Format Widget, Position,Font-family and Size
- Allow to make payment through PayPal Fundraiser

Usage
-----

[](#usage)

You can look at tests/index.php file to see an usage example.

There are two types of widget format:

- Aside
- Footer

First Step install the package by:

```
composer require ddauria1/charity-package

```

Start Using it
--------------

[](#start-using-it)

```
$charity = new Charity\Base();

```

This will create a charity object using the Default Cause 0 - "Save the Children" If you wish to change it with something else you will need to pass the CauseID in the constructor as shown:

```
$charity = new Charity\Base(1); // 1 - Age UK

```

if you also don't want to display charity logo

```
$charity = new Charity\Base(0,false);

```

In case you don't want add charity website link on the title

```
$charity = new Charity\Base(0,false,false);

```

to display the widget just execute this:

```
$charity->display();

```

You can change the layout of the Widget by choosing one of the option:

```
$charity->changeViewToAside();

$charity->changeViewToFooter();

```

To change the widget style modify the following constants in Base.php: POS\_ASIDE\_CSS or/and POS\_FOOTER\_CSS

To add another cause, change the array, $this-&gt;availableCauses, in Base.php constructor.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13353357?v=4)[D'Auria Danilo](/maintainers/ddauria1)[@ddauria1](https://github.com/ddauria1)

---

Top Contributors

[![lsi-ddauria](https://avatars.githubusercontent.com/u/69839824?v=4)](https://github.com/lsi-ddauria "lsi-ddauria (19 commits)")[![ddauria1](https://avatars.githubusercontent.com/u/13353357?v=4)](https://github.com/ddauria1 "ddauria1 (1 commits)")

### Embed Badge

![Health badge](/badges/ddauria1-charity-package/health.svg)

```
[![Health](https://phpackages.com/badges/ddauria1-charity-package/health.svg)](https://phpackages.com/packages/ddauria1-charity-package)
```

###  Alternatives

[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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