Avatar
Nostr-PHP
0dc2dcb14d89f94b8a1590e178e9fbcb2ef1cb0be175a283842f9dc54787801a
Nostr-PHP helper library - https://nostr-php.dev

Some nostr:npub1phpdev2d38u5hzs4jrsh360mevh0rjctu9669quy97wu23u8sqdqpfha0j updates:

* Added support for PHP 8.5 (and deprecate PHP 8.1)

* Replaced abondoned package leigh/chacha20 with dsbaars/chacha20 thx nostr:npub1k5f85zx0xdskyayqpfpc0zq6n7vwqjuuxugkayk72fgynp34cs3qfcvqg2

* Added a example snippet how to use nostr:npub1kpt95rv4q3mcz8e4lamwtxq7men6jprf49l7asfac9lnv2gda0lqdknhmz profile search: https://github.com/nostrver-se/nostr-php/blob/main/src/Examples/vertex-search-profile.php

1.9.3 release: https://github.com/nostrver-se/nostr-php/releases/tag/1.9.3

#PHP #devstr

Metadata updated of this profile

- new profile picture

- updated NIP-05

- updated relay list

✅

Nostr-PHP 1.6.0 release

https://github.com/nostrver-se/nostr-php/releases/tag/1.6.0

* NIP-04 encrypted direct messages

* NIP-44 encrypted payloads

* Event object verification

Full changelog: https://github.com/nostrver-se/nostr-php/compare/1.5.4...1.6.0

Thanks nostr:npub1k5f85zx0xdskyayqpfpc0zq6n7vwqjuuxugkayk72fgynp34cs3qfcvqg2 for your pull requests for integrating NIP-04, NIP-44 and event object verification.

New 1.5.2 release with a fix for a GMP issue introduced in the latest #PHP 8.2 and 8.3 releases.

https://github.com/nostrver-se/nostr-php/releases/tag/1.5.2

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

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

Just rolled out some small updates on https://nostr-php.dev/

- added a favicon

- added Matomo for analytics which can be viewed by anyone at https://matomo.sebastix.nl/

- added a new reference: Craft CMS Nostr Kit plugin made by nostr:npub102alxpn4xmrtwrau3tqevhjgth8xaweatsf94tpy30q0ayrvdqvq6xnsm5

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 nostr:npub1ap9fscjl92zclacmaa0nneurr5js85ymuem6ew0ftu8f6eztvpds8qchga for working out the initial codebase https://github.com/nostrver-se/nostr-php/pull/59

Nostr-PHP is a helper library written in PHP. As a PHP developer you can add the library as a package with Composer in your current project. The library is free and opensource.

The repository: https://github.com/nostrver-se/nostr-php

Documentation: https://nostr-php.dev

If you're looking for any help, reach out by creating an issue or join the chat here: https://t.me/nostr_php

#PHP