title: PHP Application in a single file
body: <p>I want to  create  php app (with composer and some libs's)  in a single  file. 
  First  what i try is a <strong>phar</strong>.</p>
  
  <p>It's  great , but when i  enter .phar (file name can be changed to .php)   file in browser it redirects me to deafult  stub  (something.phar/www/index.php), and ok , but with some .htaccess redirect  rules ( for example default .htacces for  symfony 3) i got 404 error ( becouse this file don't exist's and  htaccess redirects to framework )</p>
  
  <p>my question's are : </p>
  
  <ol>
  <li><p>anyone seen solution for using single file app (phar) with 
  symfony3 .htaccess  or  similar ? </p></li>
  <li><p>Is there any other solution to pack whole ip in a single php file
  ?</p></li>
  </ol>
  
  <p>PS .  creating  new .php file that includes .phar   don't work</p>
  
  <p>PS .  I'm searching for solution that dosen't  touch .htaccess (without modification there )  </p>