PHPackages                             remade/rave-widget - 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. remade/rave-widget

AbandonedArchivedLibrary

remade/rave-widget
==================

A light-weight payment request library for Rave; for Laravel apps and composer aware PHP apps in general

0.1.1-beta(8y ago)10274[2 issues](https://github.com/remade/rave-widget/issues)PHP

Since Apr 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/remade/rave-widget)[ Packagist](https://packagist.org/packages/remade/rave-widget)[ RSS](/packages/remade-rave-widget/feed)WikiDiscussions master Synced 4d ago

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

Rave Widget
===========

[](#rave-widget)

A light-weight library to manage rave payment requests and response for Laravel apps and PHP projects in General

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

[](#prerequisites)

```
PHP >= 7.1
PHP PDO Extension

```

For Laravel:

```
Laravel >= 5.5.0

```

### Installing

[](#installing)

```
composer require remade/rave-widget

```

Afterwards, on Laravel, run `php artisan vendor:publish --provider=Remade\RaveWidget\Laravel\ServiceProvider`

### Usage

[](#usage)

Define your Configuration values:

```
$configuration_values = [
    'database' => [
        'database_type' => 'mysql',
        'database_name' => 'my_db_name',
        'server' => 'my_db_host_address',
        'username' => 'my_db_username',
        'password' => 'my_db_password',
    ],

    'widget' => [
        'payment_request_table_name' => 'payment_request_table', //default
    ],

    'rave' => [
        'public_key' => '*******************************************', //get from rave
        'secret_key' => '*******************************************', //get from rave
        'environment' => 'test|live',
    ]
];

```

For Laravel apps, the configuration is already published to the app's config path in a `rave.widget.php` file. Edit as necessary.

Instantiating the Widget Object can be done in one of two ways. There is no drawback irrespective of which way you choose.

You can create a new instance of the Configuration class and use it to instantiate the Widget:

```
$config = new \Remade\RaveWidget\Core\Configuration($configuration_values);
$widget = new \Remade\RaveWidget\Widget($config);

```

or you can just initialize straight away with the configuration values:

```
$widget = new \Remade\RaveWidget\Widget($configuration_values);

```

For Laravel, all these has already been taken care of. After you must have updated `rave.widget.php` file in Laravel's app config path, the widget instance will be available as

```
$widget = RaveWidget::instance();

```

#### Setting up Payments

[](#setting-up-payments)

The payment details are set on the payment object. This object is available via `$widget->payment()`

```
$wigdet->payment()->setEmail('mail4remi@yahoo.com')->setAmount(100)->setCurrency('NGN');

```

Available Methods are:

```
setAmount(decimal)
setPaymentMethod(string)
setDescription(string)
setLogo(url)
setTitle(string)
setCountry(string)
setCurrency(string)
setEmail(email)
setFirstname(string)
setLastname(string)
setPhoneNumber(string)
setPayButtonText(string)
setRedirectUrl(url)
setMetaData(array)

```

All set property method have an equivalent get method e.g. `setAmount(amount)` and `getAmount()`

#### Setting Configuration

[](#setting-configuration)

You can update configuration values at run time. The Configuration instance is available on Widget instance i.e `$widget->configuration()`

#### Making Payment Request

[](#making-payment-request)

```
$widget = \RaveWidget::instance();
$widget->payment()->setEmail('mail4remi@gmail.com')->setAmount(100)->setCurrency('NGN');
$widget->makePaymentRequest($render)

```

Where `$render` is a string with default value `self_hosted`. Acceptable values are `self_hosted`, `rave_hosted` and `data`

#### Verifying Payment

[](#verifying-payment)

`$transaction = $widget->verifyTransaction($transactionReference)`This would be called typically on callback/webhook response.

Running the tests
-----------------

[](#running-the-tests)

```
phpunit

```

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/remade/rave-widget/tags).

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

Every ~7 days

Total

2

Last Release

2941d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfee92de8668bcaaccabcc024d6d1003cf63224a2413838eb34ce8abf4e9e251?d=identicon)[remadelive](/maintainers/remadelive)

---

Top Contributors

[![remade](https://avatars.githubusercontent.com/u/8609206?v=4)](https://github.com/remade "remade (16 commits)")

### Embed Badge

![Health badge](/badges/remade-rave-widget/health.svg)

```
[![Health](https://phpackages.com/badges/remade-rave-widget/health.svg)](https://phpackages.com/packages/remade-rave-widget)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)

PHPackages © 2026

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