# Grin PHP integration

**URL:** <https://forum.grin.mw/t/grin-php-integration/8449>\
**Category:** Development and Technical Discussion\
**Created:** [February 21, 2021, 7:13pm UTC](https://forum.grin.mw/t/grin-php-integration/8449 "2021-02-21T19:13:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![markhollis](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@markhollis](https://forum.grin.mw/u/markhollis)\
**Post date:** [February 21, 2021, 7:13pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/1 "2021-02-21T19:13:10Z")

</div>

Hello all,

I am thinking about implementing a Grin PHP library. I’m inspired by this project.

> **[monero-integrations/monerophp](https://github.com/monero-integrations/monerophp)**
>
> Monero PHP library + JsonRPC Client. Contribute to monero-integrations/monerophp development by creating an account on GitHub.

I’m curious if there is some interest for this, or if this is something that would be valued. If more people are interested in this, this would give me some motivation to continue.

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 10, 2021, 6:10pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/2 "2021-11-10T18:10:56Z")

</div>

having a PHP implementation of the grin wallet would be a fantastic thing. everybody could just point to a node and do their own grin checkout features without having to even download the blockchain or use any other libraries.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 16, 2021, 1:49am UTC](https://forum.grin.mw/t/grin-php-integration/8449/3 "2021-11-16T01:49:57Z")

</div>

I have this in the roadmap [GitHub - grinventions/about: about grinventions](https://github.com/grinventions/about#roadmap-whatever) but currently working on the [GitHub - grinventions/mimblewimble-py: Pure Python implementation of Mimblewimble protocol for Grin cryptocurrency](https://github.com/grinventions/mimblewimble-py) and after that planning to tackle [GitHub - grinventions/mimblewimble-js](https://github.com/grinventions/mimblewimble-js) . If anyone wants to contribute let’s say Grinventions is hiring because I could apply for funding for you from the ツ Community Fund.

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 16, 2021, 5:29pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/4 "2021-11-16T17:29:12Z")

</div>

> [@renzokuken](#):
>
> If anyone wants to contribute let’s say Grinventions is hiring

I’ll join. I code html, js, css, php, python, c#. I’m also looking to make grin. I’ll send you a DM.

---

<div class="post-metadata">

**Author:** ![markhollis](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@markhollis](https://forum.grin.mw/u/markhollis)\
**Post date:** [November 16, 2021, 6:07pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/5 "2021-11-16T18:07:12Z")

</div>

I would also like to contribute Python/JS/PHP, but I’m busy at the moment with the hardware wallet implementation.

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 16, 2021, 8:47pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/6 "2021-11-16T20:47:13Z")

</div>

> [@markhollis](#):
>
> I would also like to contribute Python/JS/PHP, but I’m busy at the moment with the hardware wallet implementation.

@markhollis perhaps whilst you are working on the hardware wallet you could just peer review the code or something

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 17, 2021, 2:01am UTC](https://forum.grin.mw/t/grin-php-integration/8449/7 "2021-11-17T02:01:40Z")

</div>

I’m so glad to see such enthusiasm! I think what we need is setup some sort of communication channel where we can discuss the source code of grin++ and CLI wallet from the core team.

I love coding this, it is great fun, but honestly reverse engineering source code all by myself is a bit of a pain, and I feel bad flooding David with questions at random moments of time…

So if we had some sort of a discussion group where we could analyze it together it would be much more pleasant work.

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 17, 2021, 1:23pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/8 "2021-11-17T13:23:31Z")

</div>

How about a channel in the GRIN community discord? I’m not only interested in helping out with javascript, but also porting c++ to python. If we could get a role and a channel on discord we can communicate real-time to get this progressing. edit: there is already a #development channel in the grin community discord we can use to chat. Do you use discord?

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 17, 2021, 1:52pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/9 "2021-11-17T13:52:51Z")

</div>

I use Discord and I would be ok with that, I am just worried that it would be just endless IM discussion. I think I would prefer something in QA kind of format so that whatever we find could be useful for someone else later. Sort of Mimblewimble knowledge base, like our own StackOverflow.

> <https://meta.stackexchange.com/questions/2267/are-there-any-clones-alternatives-for-running-a-stack-exchange-style-qa-site/37953#37953>

I have received some donations for Grinventions and I intend to use those funds only to pay for project related expenses. Perhaps I could get a server and install one of the above softs for our Mimblewimble knowledge base.

---

<div class="post-metadata">

**Author:** ![markhollis](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@markhollis](https://forum.grin.mw/u/markhollis)\
**Post date:** [November 20, 2021, 8:54pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/10 "2021-11-20T20:54:51Z")

</div>

When reading your question, I had something in mind like [Questions - OpenCV Q&A Forum](https://answers.opencv.org/questions/) or [https://answers.ros.org/questions/](https://answers.ros.org/questions/). Maybe it could also work as a separate category in this forum?

---

<div class="post-metadata">

**Author:** ![markhollis](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@markhollis](https://forum.grin.mw/u/markhollis)\
**Post date:** [November 25, 2021, 12:35pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/11 "2021-11-25T12:35:21Z")

</div>

Maybe this library can be useful for MimbleWimble-py? [GitHub - WTRMQDev/secp256k1-zkp-py](https://github.com/WTRMQDev/secp256k1-zkp-py)

I’ve liked into monerophp a while ago. I remember that their approach is making calls to a JSON-RPC API. They haven’t translated the actual full Monero codebase (although a Python translation can be useful to experiment). Something similar could be an approach for a Grin WooCommerce (Wordpress) plugin.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 25, 2021, 1:58pm UTC](https://forum.grin.mw/t/grin-php-integration/8449/12 "2021-11-25T13:58:53Z")

</div>

We would need `secp256k1` library indeed, but the most important to find would be some PHP library to compute and verify bulletproofs for us. In my judgement that will be the greatest challenge to implement.

Regarding making a payment processor, you are correct, technically we could use owner/foreign API from an actual wallet. However… Trust me, I used to work with online stores for a while, setting up ツ wallet in listener mode to make a WP plugin work is beyond average seller skills…
