PHPackages                             beeeku/instamojo-php - 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. [API Development](/categories/api)
4. /
5. beeeku/instamojo-php

ActiveLibrary[API Development](/categories/api)

beeeku/instamojo-php
====================

A PHP wrapper for the instamojo API.

140PHP

Since Dec 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/beeeku/instamojo-php)[ Packagist](https://packagist.org/packages/beeeku/instamojo-php)[ RSS](/packages/beeeku-instamojo-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Instamojo PHP API
=================

[](#instamojo-php-api)

Assists you to programmatically create, edit and delete Links on Instamojo in PHP.

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

[](#installation)

To add this package as a local, per-project dependency to your project, simply add a dependency on `beeeku/instamojo-php` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on instamojo-php:

```
{
    "require": {
        "beeeku/instamojo-php": "dev-master"
    }
}

```

OR

Install the latest version with

```
$ composer require beeeku/instamojo-php
```

Usage
-----

[](#usage)

### Create a Link

[](#create-a-link)

```

```

This will give you JSON object containing details of the Link that was just created.

### Edit a Link

[](#edit-a-link)

```

```

### List all Links

[](#list-all-links)

```

```

### List all Payments

[](#list-all-payments)

```

```

### Get Details of a Payment using Payment ID

[](#get-details-of-a-payment-using-payment-id)

```

```

Available Functions
-------------------

[](#available-functions)

You have these functions to interact with the API:

- `linksList()` List all Links created by authenticated User.
- `linkDetail($slug)` Get details of Link specified by its unique slug.
- `linkCreate(array $link)` Create a new Link.
- `linkEdit($slug, array $link)` Edit an existing Link.
- `linkDelete($slug)` Archvive a Link - Archived Links cannot be generally accessed by the API. User can still view them on the Dashboard at instamojo.com.
- `paymentsList()` List all Payments linked to User's account.
- `paymentDetail($payment_id)` Get details of a Payment specified by its unique Payment ID. You may receive the Payment ID via `paymentsList()` or via URL Redirect function or as a part of Webhook data.

Link Creation Parameters
------------------------

[](#link-creation-parameters)

### Required

[](#required)

- `title` - Title of the Link, be concise.
- `description` - Describe what your customers will get, you can add terms and conditions and any other relevant information here. Markdown is supported, popular media URLs like Youtube, Flickr are auto-embedded.
- `base_price` - Price of the Link. This may be 0, if you want to offer it for free.
- `currency` - Currency options are `INR` and `USD`. Note that you need to have a Bank Account in USA to accept USD currencies.

### File and Cover Image

[](#file-and-cover-image)

- `file_upload` - Full path to the file you want to sell. This file will be available only after successful payment.
- `cover_image` - Full path to the IMAGE you want to upload as a cover image.

### Quantity

[](#quantity)

- `quantity` - Set to 0 for unlimited sales. If you set it to say 10, a total of 10 sales will be allowed after which the Link will be made unavailable.

### Post Purchase Note

[](#post-purchase-note)

- `note` - A post-purchase note, will only displayed after successful payment. Will also be included in the ticket/ receipt that is sent as attachment to the email sent to buyer. This will not be shown if the payment fails.

### Event

[](#event)

- `start_date` - Date-time when the event is beginning. Format: `YYYY-MM-DD HH:mm`
- `end_date` - Date-time when the event is ending. Format: `YYYY-MM-DD HH:mm`
- `venue` - Address of the place where the event will be held.
- `timezone` - Timezone of the venue. Example: Asia/Kolkata

### Redirects and Webhooks

[](#redirects-and-webhooks)

- `redirect_url` - This can be a Thank-You page on your website. Buyers will be redirected to this page after successful payment.
- `webhook_url` - Set this to a URL that can accept POST requests made by Instamojo server after successful payment.
- `enable_pwyw` - set this to True, if you want to enable Pay What You Want. Default is False.
- `enable_sign` - set this to True, if you want to enable Link Signing. Default is False. For more information regarding this, and to avail this feature write to support at instamojo.com.

Further documentation is available at

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/f1024350a2fd5fd477dd77d184af1e5992caa8a63744dc8bcffcc3ae0a00725b?d=identicon)[beeeku](/maintainers/beeeku)

---

Top Contributors

[![rishimukherjee](https://avatars.githubusercontent.com/u/1550303?v=4)](https://github.com/rishimukherjee "rishimukherjee (13 commits)")[![hiway](https://avatars.githubusercontent.com/u/23116?v=4)](https://github.com/hiway "hiway (11 commits)")[![beeeku](https://avatars.githubusercontent.com/u/2242358?v=4)](https://github.com/beeeku "beeeku (7 commits)")[![ashwch](https://avatars.githubusercontent.com/u/1311161?v=4)](https://github.com/ashwch "ashwch (6 commits)")[![saich](https://avatars.githubusercontent.com/u/350338?v=4)](https://github.com/saich "saich (1 commits)")

### Embed Badge

![Health badge](/badges/beeeku-instamojo-php/health.svg)

```
[![Health](https://phpackages.com/badges/beeeku-instamojo-php/health.svg)](https://phpackages.com/packages/beeeku-instamojo-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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