I found this answer and it helped me half the way: How do you use the PHP OpenPGP library? First of all, due to dependencies I really failed to set it up properly by just downloading it. But as I have Symfony running and installed with composer, I finally got pgp installed (but not working) in Symfony by running composer