Req #68340 [Opn->Nab]: [feature req:php-cli] zipped module like .pyz in python , .jar in java

From: Date: Tue, 04 Nov 2014 02:32:27 +0000
Subject: Req #68340 [Opn->Nab]: [feature req:php-cli] zipped module like .pyz in python , .jar in java
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188435@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68340&edit=1 ID: 68340 Updated by: requinix@php.net Reported by: zaxebo1 at gmail dot com Summary: [feature req:php-cli] zipped module like .pyz in python , .jar in java -Status: Open +Status: Not a bug Type: Feature/Change Request Package: CGI/CLI related Operating System: irrelevant ;ubuntu 14.04 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: We have those already: PHAR files. http://php.net/manual/en/intro.phar.php Here's a couple links that look decent to get you started: http://www.sitepoint.com/packaging-your-apps-with-phar/ http://www.ibm.com/developerworks/library/os-php-5.3new4/ Previous Comments: ------------------------------------------------------------------------ [2014-11-04 02:26:25] zaxebo1 at gmail dot com Description: ------------ In python, if i have multiple program files: "a1.py, a2.py, __main__.py, dir1/b1.py, dir1/b2.py" and then i zip it as myprogram1.pyz then i can run it as "python myprogram.pyz" (__main__.py inside the zip file will be executed first). It is easy to distribute a single file myprogram1.pyz see: http://blogs.gnome.org/jamesh/2012/05/21/python-zip-files/ === in java also we can bundle all the .class files into a single .jar file and run it java -jar myprogram1.jar ======== Now, i request you to kind provide a feature in php-cli that if i have lots of files like: a1.php , a2.php, __main__.php dir1/a4.php etc. (say, which uses PHP-GTK for a Desktop application). Then i should be able to bundle them as zip file, say myprog1.zip or myprog1.pz (pz =php's zipped executable archive). And then i can distribute this "single file" and execute it as: php myprog1.pz This will execute the __main__.php file among all the other .php files, inside this .zip archive myprog1.pz . ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68340&edit=1

« previous php.bugs (#188435) next »