I only want to add the 2 fields required by Google for the Licensable badge:
- Web Statement of Rights
- Licensor URL
I'm able to write standard IPTC fields but these two seems to require XMP.
As a newbie, I've been searching for hours and got lost in a maze of classes, libraries, packages requiring Composer(?) or npm(?), cryptic examples assuming previous knowledge, downloaded stuff which doesn't work because I'm probably using them wrong, etc.
If someone could give me a code-complete example, or pointers to such, I'd much appreciate it.
Exiftool is my preferred way of writing XMP. There are some PHP libraries for using it but
exec()can work as well if you know the commands.A simple example for the Web Statement of Rights is: