That's one of the reference I was looking at too, combined with the go-nostr library
We could use https://github.com/nbd-wtf/nostr-tools/blob/master/nip19.test.ts as starting point. Converting the tests to php and then implementing the code.
Discussion
Excellent, I am working on an implementation, but it is challenging me. I translated the tests to php, but I think I am now at the part where I need to convert the data to bits. Will continue monday, but hopefully sooner. How is your progression?
You can check my latest commits in the nip19 branch in the nostr-php
https://github.com/nostrver-se/nostr-php/commit/663f8d0054f03cb05f33f628c001a4be0b7790fe
What about a having online call to go through our challenges?