Download the PHP package thelia/paygreen-climate-kit-module without Composer

On this page you can find all versions of the php package thelia/paygreen-climate-kit-module. 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 paygreen-climate-kit-module

Pay Green Climate Kit

Ce module permet à vos clients de participer financièrement à des projets de compensation du coût carbone de leurs achats sur votre boutique grâce au ClimateKIT de PayGreen

À tout moment, votre client peut connaitre l'empreinte carbone générée par l'utilisation de votre boutique. Avant de procéder au paiement, il pourra ajouter à son panier une contribution à un projet environnemental qui permettra de neutraliser son empreinte carbone.

Pour commencer, vous devez créer un compte PayGreen Climate ici : https://climatekit.paygreen.fr, et renseigner les informations nécessaires.

Installation

Avec Composer

Ajoutez le module au composer.json de votre installation

Manuellement

Vous pouvez aussi installer le module manuellement, mais vous devrez ajouter ses dépendances à votre composer.json` :

"php-http/curl-client": "^2.2",
"paygreen/paygreen-php": "^1.2",
"mobiledetect/mobiledetectlib": "^2.8"

Configuration

Une fois le module installé, vous devez le configurer, pour indiquer les identifiants PayGreen Climate, choisir le mode d'opération, le thème couleur du Bot... Une fois les identifiants entrés vous devrez envoyer votre catalogue de produits vers PayGreen, soit automatiquement, soit manuellement.

Une fois le module installé et configuré, les informations sur l'empreinte carbone sont affichées sur chaque page du site si vous le souhaitez.

Le module associé à chaque commande un Footprint ID, qui permet de faire le lien entre PayGreen et la commande. Vous retrouverez cet ID dans votre back-office et dans le tableau de bord PayGreen Climate.

Loop

Permet d'obtenir le footprint ID d'une commande

Argument Description
order_id L'ID d'une commande, exemple: order_id=12

Documentations techniques

Climate Kit API : https://api-climatekit.paygreen.fr/documentation/climate

PayGreen SDK : https://github.com/PayGreen/paygreen-php

PayGreen Carbon Bot documentation : https://github.com/PayGreen/carbon-bot-doc


This module allows your customers to compensate the carbon cost of their purchases on your store by contributing to carbon offset projects thanks to the ClimateKIT from PayGreen

At any time, your customer can check the carbon footprint generated by the use of your store. Before making payment, he can add to his basket a contribution to an environmental project that will neutralize his carbon footprint.

To start, you must create a PayGreen Climate account here: https://climatekit.paygreen.fr, and provide the required information.

Installation

With Composer

Add the module to composer.json of your Thelia installation

Manually

You can also install the module manually, but you will need to add its dependencies to your composer.json`:

"php-http/curl-client": "^2.2",
"paygreen/paygreen-php": "^1.2",
"mobiledetect/mobiledetectlib": "^2.8"

Setup

Once the module is installed, you must configure it, to provide the PayGreen Climate identifiers, choose the operation mode, the color theme of the widgets... Once the identifiers have been entered, you will have to send your product catalog to PayGreen, either automatically or manually.

Once the module is installed and configured, the carbon footprint information is displayed on every page of the site.

The module assciates a Footprint ID to every order, which creates a link between PayGreen and the order. You will find this Footprint ID in your back office and in the PayGreen Climate dashboard.

Loop

Allows you to get the footprint ID of an order

Argument Description
order_id The ID of an order, example: order_id="12"

Technical Documentations

Climate Kit API : https://api-climatekit.paygreen.fr/documentation/climate

PayGreen SDK : https://github.com/PayGreen/paygreen-php

PayGreen Carbon Bot documentation : https://github.com/PayGreen/carbon-bot-doc


All versions of paygreen-climate-kit-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
php-http/curl-client Version ^2.2
paygreen/paygreen-php Version ^1.2
mobiledetect/mobiledetectlib Version ^2.8
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 thelia/paygreen-climate-kit-module contains the following files

Loading the files please wait ....