Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51702 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11198 invoked from network); 15 Mar 2011 20:31:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2011 20:31:50 -0000 X-Host-Fingerprint: 99.14.103.96 unknown Received: from [99.14.103.96] ([99.14.103.96:21870] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/B3-03183-4BCCF7D4 for ; Tue, 15 Mar 2011 15:31:49 -0500 Message-ID: <7D.B3.03183.4BCCF7D4@pb1.pair.com> To: internals@lists.php.net Date: Tue, 15 Mar 2011 16:31:48 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 99.14.103.96 Subject: Re: Package php binaries + php script into one single executable file From: alecgorge@gmail.com (Alec) I am also interested in hearing the answer to this. Alec Gorge On 3/15/2011 4:09 PM, Olivier Hoareau wrote: > Hi ! > > I would like to be able to "distribute" (freely) a single executable > (binary) containing : > > - php binaries (v 5.3+) > - a php script already packaged as a .phar (1 Mb, requiring PHP 5.3+) > - additional (optional) compiled extensions > - php.ini > - all other resources required by the php executable to run > > The aim is to be able to provide a command line tool based on PHP but not > requiring my user to install PHP *before* using the tool (and only download > the tool as a single executable file to execute it) > I would like my users to be able to use this "packaged" tool (requiring PHP > 5.3+) whatever version of PHP my users have already installed (or not) on > their system. > > Targeted platforms are : > > - windows (XP / Vista / 7) => 70% of my users > - linux debian-like (ubuntu / debian) => 20% of my users > - other platforms => 10% of my users > > At this point, this is not a problem for me to have a huge self-executable > file (> 10Mb). > I need to be able to package a version of the tool using a batch (or > script), as I am using continuous integration. > > Do you have ideas on how to reach this goal ? > The tool is open source, using New BSD License (currently, in beta version). > > Thanks for your answers ! > > Best regards, > > Olivier Hoareau >