title: pipenv python variables to php
body: <p>So I have this <code>pipenv</code> where I have a  log of variables in python that I would like to have transferred over to my 'PHP.'</p>
  <p>My terminal commandos for running this python is:</p>
  <pre><code>pipenv shell
  py pyget/jira.py
  --OUTMPUTS VARIABLES--
  </code></pre>
  <p>The python code is:</p>
  <pre class="lang-py prettyprint-override"><code>
  if __name__ == &quot;__main__&quot;:
      jira = Jira()
  
      fields = jira.get_fields()
      jql_issues = jira.get_jql_search_issues(jql_search=&quot;project = SWA&quot;)
      for issue in jql_issues:
          logging.info(f&quot;Key: {issue.key} - Assignee: {issue.fields.assignee.display_name}&quot;)
  
  </code></pre>
  <p>I need to get the variables <code>issue.key</code> and <code>issue.fields.assignee.display_name</code> over  to PHP.</p>
  <p>I found an example of how it can be done, but I don't quite get it since I've never done this before.</p>
  <p>This is what I've found:</p>
  <p>php code:</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  $state = $argv[1];
  echo $state;
  ?&gt;
  </code></pre>
  <p>python code:</p>
  <pre class="lang-py prettyprint-override"><code>from subprocess import *
  #ledstate='on'
  p = Popen(['/usr/bin/php','&lt;php file name&gt;',ledstate],stdout=PIPE)
  print p.stdout.read()
  </code></pre>