Questions tagged [Phar] (13)

1
answer

You need to install on Windows, that would run the application in phar in cmd?

You need to install on Windows, that would run the application in phar in cmd?
Shyann_Hammes asked April 4th 20 at 13:45
2
answers

How to create your .phar from your class or file .php?

actually a question for the phar suppose there is a class which is SimpleClass.php<?php class SimpleClass { // declare properties public $var = 'a default value'; // method Declaration public function displayVar() { echo $this->var; } } how to make this SimpleClass.php ready SimpleClass.phar
rod.Braun asked April 4th 20 at 00:43
0
answer

How to specify root folder for project box?

Good time of day according to instructions from here Everything works, everything is OK, but I would like to make a configuration json file one level above Here it is:\ |-distributor |-build.json he config is:{ "chmod": "0755", "directories": [ "./distributor/php" "./distributor/vendor" ], "files": [ "./distributor/ccxt....
Sadye_Kreiger asked April 2nd 20 at 16:29
1
answer

Is it possible to compile the phar file?

I have a phar package, I want to collect it in the binary windows or linux doesn't matter. That would not have had to roll php on each machine ( Docker not to offer not interesting ) a simple cls application. Are there any solutions for this? php7.2
Arjun asked March 29th 20 at 21:07
1
answer

Why is the phar does not see the included file?

Tell me, I put together a small console application, php phar package used box with the same config { "chmod": "0755", "directories": [ "src" ], "main": "main.php", "output": "boot.the phar", "stub": true } Everything was going fine, from the folder run the package works, is transferred to another machine and getting ...
german_Me asked March 25th 20 at 12:17
3
answers

How to pack a composer project in a phar?

Try the Nette Framework, did the project sandbox, to check whether the remote server to the requirements of the framework. Got this directory structure: If you copy the entire project in the htdocs, and open localhost/sandbox/www/, that page opens application. I need to copy the project to a subdirectory inside public_html ...
Colton_Murr asked March 12th 20 at 13:06
2
answers

Install PHP Phar Extension in PHP 5.3

There are ishodniki PHP 5.3.6. When configuring, specify the path where the PEAR packages are installed ('--with-pear=/usr/local/lib/php/pear). At the end of the configuration it throws: PEAR package PHP_Archive not installed: generated phar will require PHP''s phar extension be enabled. In the Phar section on the website...
Jessik asked October 10th 19 at 01:46
3
answers

Phar and Debian

Good day! There is an urgent need to raise the server on Debian. What happened: installed Debian(6.0), installed Apache (2.2.16), PHP (5.3.3-7) and muscul. In General all took off, but phar refuses to work. $phar=new Phar('test.phar');<br> $phar->buildFromDirectory('test/');/*here lies the file test.php*/<br>...
trever6 asked October 9th 19 at 18:03
2
answers

Not working phar

In General, run the same script under Apache and using the cli require_once 'phar:///way/file.phar/file.php';<br> Under Apache chime: Fatal error: require_once(): Failed opening required 'phar:///way/file.phar/file.php' (include_path='.:/usr/share/php:/usr/share/pear') in script.php <br / > <br / > PHP...
Jannie.Gibs asked October 8th 19 at 04:43
1
answer

Execution of a packaged phar without unpacking to a temporary file

Actually, decided to pick phar (php5.4.9) and came across a nasty peculiarity that Packed archives, when you first access the internal files (the read stub is not relevant), automatically unpacked to a temporary folder. And regardless of what is Packed and how to read: compress, compressFiles, mapPhar, interceptFileFuncs et...
jaylan88 asked October 3rd 19 at 05:55