Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

PayPal Donation Widget

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

PayPal Donation Widget - CodeCanyon Item for Sale


Ad: Bluehost hosting

PayPal Donation Widget is a simple PHP-script that allows you to embed donation box into any HTML-page (PHP-page, ASP-page, whatever-page). It displays recent/top donors and donation button (it also can display full list of donors as a table or comma separated string). Once your visitor donated through widget, his/her name appears in a list. Widget is embedded with 1-line JavaScript code.


  • Any number of recent donors: display as many recent donors as you wish.
  • Highly customizable: change colors, fonts and styles using CSS, all CSS-classes are ready.
  • PayPal ready: you just need set up your PayPal ID.
  • Lite script: no database queries or heavy server loads.
  • Easy integration: insert 1 JavaScript line of code into your pages.
  • Multiple display modes: display widget by different ways.
  • 3rd party websites integration: you can insert the same widget into any websites, located on other domains.
  • Easy to install: you only need to edit config.php (title, PayPal ID, number of recent donors, target to reach).


Let’s imagine that you have website: and you want to install there.

1. Create folder “donationcontest” (use any other name) in root of your domain. Once created it can be reached by URL:

2. Unpack zip-archive into this folder and set permission 0777 for folder “data”. To make sure that you did everything correctly, open URL in browser, you will see phrase: “Silence is the gold!”.

3. Edit config.php and set 6 parameters: script URL (, title of widget, your PayPal ID, number of recent donors, currency and target to reach.

4. Embed widget into any page of any website with any of the following modes (you can see all this modes on “Live Preview” page):
  • Recent donors
    <script type="text/javascript" charset="utf-8" src=""></script>
  • TOP donors
    <script type="text/javascript" charset="utf-8" src=""></script>
  • Recent donors only
    <script type="text/javascript" charset="utf-8" src=""></script>
  • TOP donors only
    <script type="text/javascript" charset="utf-8" src=""></script>
  • All donors table
    <script type="text/javascript" charset="utf-8" src=""></script>
  • All donors comma-separated string
    <script type="text/javascript" charset="utf-8" src=""></script>
  • Button only
    <script type="text/javascript" charset="utf-8" src=""></script>

That’s it! Enjoy using the PayPal Donation Widget.

If you have problems regarding using this script, please contat me and I’ll help you.

Free counters!

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


20 April 12

Last Update:
30 April 13

High Resolution:

Compatible Browsers:
IE6, IE7, IE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome

Files Included:

Software Version:
PHP 4.x, PHP 5.x, PHP 5.0 - 5.2, PHP 5.3, PHP 5.4


eCommerce, eCommerce, All Items, button, donate, donation, donor, monetize, monetizing, money, paypal, widget