Skip to content

What is Nostr-PHP?

Nostr-PHP is a helper library for PHP developers.

How it started

Back in february 2023 the initial development of the Nostr-PHP library was done by Swentel while he was working on a Drupal module to easily (cross)post a note (Nostr Simple Publish). When he started to work on this module he quickly learned that it would make sense do use a PHP helper library to execute all the Nostr generic things in the code. As there was no library yet, he started to build one (see the initial commit here) to include it in the module (see this commit). In that same period also Sebastix was developing a Drupal module to integrate NIP-05 (Nostr NIP05) and started to use the library as well. He used the Nostr Simple Publish module to create a new module for crossposting long form content (Nostr long-form content NIP-23).

In June 2023 Swentel was unable to keep working on the library as well on the Nostr Simple Publish Drupal module (see this issue). He reached out with the question seeking for other co-maintainers. In October 2023 Sebastix applied as a maintainer as there was no interest from other developers as he was still working on some Drupal modules.

At the end of 2023 Sebastix applied for a OpenSats grant for further development of the library (read the grant application here). In May '24 OpenSats approved this grant to Sebastix for a 1-year part-time development till June '25.

Learn more about websockets

If you're curious how Websocket works, I recommended to watch this video:

This video is part of https://www.classcentral.com/course/youtube-websockets-crash-course-handshake-use-cases-pros-cons-and-more-139394

Released under the MIT License. Supported by OpenSats.
Source Code