PHPackages                             xoxoday/plumapi - 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. xoxoday/plumapi

ActiveLibrary

xoxoday/plumapi
===============

This package contains plum API for order creation

1.0.1(3y ago)019PHP

Since Dec 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hagarwal-velsof/xoxoday-plumapi)[ Packagist](https://packagist.org/packages/xoxoday/plumapi)[ RSS](/packages/xoxoday-plumapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

**Plum Package**

What is Plum API?
-----------------

[](#what-is-plum-api)

This package takes care of calling the Plum APIs like Create Order (Paytm cashback).

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

[](#installation)

Require this package with composer.

```
$ composer require xoxoday/plumapi
```

Publish package
---------------

[](#publish-package)

Create config/xoplum.php and Jobs/PlumOrder.php files using the following artisan command:

```
$ php artisan vendor:publish  --tag="Plum_files"
```

Complete configuration
----------------------

[](#complete-configuration)

### Set your credentials

[](#set-your-credentials)

Open config/xoplum.php configuration file and set your credentials:

```
return [
    'xoplum_client_id' => env('xoplum_client_id', 'Set your Client ID'),
    'xoplum_client_secret' => env('xoplum_client_secret', 'Set your Client Secret'),
    'xoplum_env' => env('xoplum_env', 'sandbox'),   //change sandbox to production in case of production site
    'xoplum_sandbox_url' => env('xoplum_sandbox_url', 'https://stagingaccount.xoxoday.com/chef/v1/'),
    'xoplum_production_url' => env('xoplum_production_url', 'https://accounts.xoxoday.com/chef/v1/'),
    'xoplum_product_id' => env('xoplum_product_id', 'Set Product ID'),
];
```

Database table migration
------------------------

[](#database-table-migration)

Create xoplum\_api\_credentials and xoplum\_orders tables in your database.

```
$ php artisan migrate
```

### Set your reference key

[](#set-your-reference-key)

Check for xoplum\_api\_credentials table in your database. Set your credentials

idkeyvaluecreated\_atupdated\_at1refresh\_tokenset your refresh token2access\_tokenHow to use
----------

[](#how-to-use)

Refer code from the sample.php file and use the functionality of the package.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1257d ago

### Community

Maintainers

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

---

Top Contributors

[![hagarwal-velsof](https://avatars.githubusercontent.com/u/58728963?v=4)](https://github.com/hagarwal-velsof "hagarwal-velsof (7 commits)")

### Embed Badge

![Health badge](/badges/xoxoday-plumapi/health.svg)

```
[![Health](https://phpackages.com/badges/xoxoday-plumapi/health.svg)](https://phpackages.com/packages/xoxoday-plumapi)
```

PHPackages © 2026

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