Download the PHP package cryptom2/magento-nftloyalty without Composer

On this page you can find all versions of the php package cryptom2/magento-nftloyalty. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento-nftloyalty

Crypto NftLoyalty Magento 2 Extension

Magento 2 NFT Loyalty Extension Allows to use NFT token as 'Discount Card' for implementing NFT Loyalty Programs.

Description

Extension adds new condition for Magento 2 Cart Rules functional and checks if customer has tokens of specified NFTs in wallet.

If NFT tokens are presented in wallet - it applies discount follow rules that are set in Magento Cart Rules.

Extension allows to implement discount programs, partnership program, NFT loyalty programs between magento stores and web3 projects.

For frontend actions module uses Metamask and web3.js, for backend checks - modified web3.php library.

How It Works

Customer can apply NFT on cart page and on checkout page too.

Installation

Add PHP Web3 Repository

PHP Web3 library uses old version of phpseclib (v2), but magento requires version 3. It was changed in web3 fork thus you need to add custom repository for web3.php.

Composer Installation

composer require cryptom2/magento-nftloyalty:v1.0.0

Magento Run

php bin/magento setup:upgrade

Hardhat install for testing

Hardhat allows you to run local ethereum network, deploy demo NFT and test module locally.

Go To:

{project_folder}/vendor/cryptom2/magento-nftloyalty/hardhatnft

Run:

npm install --save-dev hardhat

npx hardhat node

npx hardhat run --network localhost ./scripts/deploy.ts

After that commands you should see NFT token address for demo test and hardhat default account, that can be integrated in Metamask.

Features

Menu Under Marketing Section

Menu

Adding New NFT

New NFT

Configuration

Configuration

Apply NFT Section on Cart Page

Cart Page0

Cart Page1

Cart Page2

Apply NFT Section on Checkout Page

Checkout Page1

Checkout Page2

Adding Sales Rule With NFT Condition

Sales Rule

TODO

Now the extension has base functional and checks only if customer has or no NFT in wallet. But it has much more potential in future.

Here are several TODOs that are going to be implemented later:

Author

Ihor Oleksiienko

License

Magento NFT Loyalty extension for Magento 2 is licensed under the MIT License - see the LICENSE file for details


All versions of magento-nftloyalty with dependencies

PHP Build Version
Package Version
Requires cryptom2/base Version ~1.0.0
web3p/web3.php Version ~1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cryptom2/magento-nftloyalty contains the following files

Loading the files please wait ....