PHPackages                             evolutionscript/metamaskipn - 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. [Payment Processing](/categories/payments)
4. /
5. evolutionscript/metamaskipn

ActiveLibrary[Payment Processing](/categories/payments)

evolutionscript/metamaskipn
===========================

Accept payments from Metamask wallets with Binance Smart Chain (BSC) tokens, use it with FIAT or other cryptos.

1.0.2(3y ago)0173MITPHPPHP &gt;=7.4

Since Jul 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/evolutionscript/metamaskipn)[ Packagist](https://packagist.org/packages/evolutionscript/metamaskipn)[ RSS](/packages/evolutionscript-metamaskipn/feed)WikiDiscussions main Synced today

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

Metamask IPN with FIAT or Crypto
================================

[](#metamask-ipn-with-fiat-or-crypto)

[MetamaskIPN](https://metamaskipn.com) allows you to receive instant payment notifications (IPN) in your site every time you receive a payment from Metamask wallets.

This library allows you convert FIAT or other cryptocurrencies to the [supported tokens](https://metamaskipn.com/docs) of MetamaskIPN and generate the payment button or shopping cart link.

**Installation:**

```
composer require evolutionscript/metamaskipn
```

**Usage:**

```
use EvolutionScript\MetamaskIPN as MetamaskIPN;
//Initialize MetamaskIPN Class
$metamaskIPN = new MetamaskIPN\MetamaskIPN();

//Specify cache directory to save data from FIAT rates and make a request once per day. It is optional but prevents exceeding the API usage limit.
$metamaskIPN->cacheDirectory(__DIR__.'/cache');

//Connect with Currency Layer and as optional connect with OpenExchangeRates. The optional provider is useful if the primary provider fails.
$metamaskIPN->currencyProviders(
	new \EvolutionScript\CurrencyAPI\Providers\CurrencyLayer('CURRENCY_LAYER_API'),
	new \EvolutionScript\CurrencyAPI\Providers\OpenExchangeRates('OPEN_EXCHANGE_RATES_API')
);

//If we are going to use fiat and deposit will be in Litecoin (LTC):
$button_code = $metamaskIPN->from_fiat(10, 'PEN')
	->to_crypto('LTC')
	->site_id(0)
	->custom_1('my_optional_parameter')
	->custom_2('other_option_parameter')
	->custom_3('another_option_parameter')
	->lang('en') //For supported languages go to https://metamaskipn.com/docs
	->button_code('Pay Now');

echo $button_code;

//If we are going to use a cryptocurrency like Solana (SOL) and deposit in in BTCB (BTC)
$button_code_2 = $metamaskIPN->from_crypto(1,'SOL')
	->to_crypto('BTCB')
	->site_id(0)
	->custom_1('custom_parameter')
	->lang('es')
	->button_code();
echo $button_code_2;

//If we are going to use the shopping cart URL, then we can specify item name and other items.
$shopping_car_url = $metamaskIPN->from_crypto(55,'XRP')
	->to_crypto('BNB')
	->site_id(0)
	->custom_1('custom_parameter')
	->lang('en')
	->item_name('Make a donation')
	->item_description('Support our project')
	->logo('https://www.evolutionscript.com/assets/evolution/images/logo.png') //URL of your logo
	->cancel_url('https://mysite.com/cart')
	->success_url('https://mysite.com/success')
	->shopping_cart();
echo 'Click here to redirect to shopping cart';
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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 ~1 days

Total

3

Last Release

1455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aeae2c8231781b231277221556561812f4361aa8f749b0a18fa4ab8b6ebc898?d=identicon)[evolutionscript](/maintainers/evolutionscript)

---

Top Contributors

[![evolutionscript](https://avatars.githubusercontent.com/u/11525334?v=4)](https://github.com/evolutionscript "evolutionscript (5 commits)")

---

Tags

tokensbscbinancemetamask

### Embed Badge

![Health badge](/badges/evolutionscript-metamaskipn/health.svg)

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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