Damus

Recent Notes

Nostr-PHP profile picture
Release 1.7.x it out with full NIP-19 support! #PHP
https://github.com/nostrver-se/nostr-php/releases/tag/1.7.0

Here are some example snippet how it can be used:
https://github.com/nostrver-se/nostr-php/blob/main/src/Examples/nip19-bech32-encoded-entities.php
https://github.com/nostrver-se/nostr-php/blob/main/src/Examples/nip19-bech32-decoded-entities.php

Many thanks to @Rik πŸ”₯ πŸ” πŸƒ 🌊 and @Nusa for refactoring the bech32 low-level stuff so it support strings with a length higher than 90 characters up to 5000.
1❀️1
stl1988 · 49w
You know that NIP-04 is deprecated in favor of NIP-17?
Nostr-PHP profile picture
Nostr-PHP release 1.5.1: https://github.com/nostrver-se/nostr-php/releases/tag/1.5.1
New / updated features:
* Added NIP-42 support for client to relay authentication
* Generic tags methods on a filter object for request messages to relays

Also a new guide page 'Using filters and tags on requesting events' is added: https://nostr-php.dev/guides/filters-and-tags-on-request-events
This page explains which filter attributes you can use when you request events from relays. Also a list with examples is being worked out with full code snippets.

Make sure you check the other provided examples too in the library: https://github.com/nostrver-se/nostr-php/tree/main/src/Examples

#PHP #nostrDev
Nostr-PHP profile picture
As #PHP developers we're used to hear that PHP sucks. Or it's just dead.
But we now better. We know it doesn't suck anymore. But do we know why? When talking to other developers, it is something handy to send them some resources to tell them why πŸ€“ What are your favorite resources?

Why PHP?
https://www.youtube.com/watch?v=x7OsH3bH6DA

A 10-minute explainer comparing PHP 2012 vs 2023:
https://www.youtube.com/watch?v=ZRV3pBuPxEQ

and a funny reaction on this:
https://www.youtube.com/watch?v=WsnHWxO7Krw

Why you should use PHP
https://www.youtube.com/watch?v=ZDZDvMB-O74

PHP from 2014 to 2024
https://www.youtube.com/watch?v=p_6ewdiwnRo
1❀️1πŸš€1πŸ€”1
Sascha-Oliver ProliΔ‡ · 73w
Nice to see good old PHP serving #nostr now.
Nostr-PHP profile picture
Release 1.4.0
https://github.com/nostrver-se/nostr-php/releases/tag/1.4.0

The library now provides separate relay response classes according to NIP-01.

EVENT - sends events requested by the client
OK - indicate an acceptance or denial of an EVENT message
EOSE - end of stored events
CLOSED - subscription is ended on the server side
NOTICE - used to send human-readable messages (like errors) to clients

This replaces the CommandResult class which had the response of a relay. Thanks @plebeian for working out the initial codebase https://github.com/nostrver-se/nostr-php/pull/59
❀️1❀️2πŸ”₯1