title: gnupg decrypt command with php with passphrase
body: <p>Im using Gnupg to decrypt a file:</p>
  
  <pre><code>gpg --decrypt -o file.xml file.gpg
  
  You need a passphrase to unlock the secret key for
  user: "TEST-COMPANY (DAM Key) &lt;test@test.de&gt;"
  4096-bit RSA key, ID 257C2D21, created 2018-04-23
  
  Enter passphrase: 
  </code></pre>
  
  <p>Then I write this passphrase and then works.</p>
  
  <p>And now I want to make it automatic using this command on PHP:</p>
  
  <pre><code>$command = 'gpg --decrypt -o file.xml file.gpg'
  exec($command);
  </code></pre>
  
  <p>The problem came when system ask for phassphrase.</p>
  
  <p>I tried this:</p>
  
  <pre><code>$command = 'gpg --decrypt -o file.xml file.gpg | [Passphrase]'
  </code></pre>
  
  <p>but doesn't work.</p>
  
  <p>Any idea about this?</p>
  
  <p>Thank you</p>