# Package php binaries + php script into one single executable file

- Thread: https://externals.io/message/51703
- Original archive: https://news-web.php.net/php.internals/51703
- Started by james.butler@edigitalresearch.com on 2011-03-15T20:27:48+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #51703 — james.butler@edigitalresearch.com — 2011-03-15T20:27:48+00:00

URL: https://externals.io/message/51703#51703

Hi Olivier,

Could you be a little more specific about what questions you have? Is it to do with the licensing or physically how to go about achieving your aim?

Regards,
James

--
James Butler
Sent from my iPhone



> 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

---

## #51704 — Olivier Hoareau — 2011-03-15T20:39:44+00:00

URL: https://externals.io/message/51703#51704 · In reply to: #51703

>
> Hi Olivier,
>

Hi !


> Could you be a little more specific about what questions you have? Is it to
> do with the licensing or physically how to go about achieving your aim?
>

technical point : how to go about achieving my aim ;)

Ideas :

- specific compilation of PHP (I am newbee, but there are lots of expert on
this list I think ;))
- others ?

This is not (I think ?) a problem with license, my current targeted license
is BSD-style (New BSD by defaults, but I can move if necessary).

Thanks !


>
> Regards,
> James
>
> --
> James Butler
> Sent from my iPhone
>
> 
>
> > […]
> download
> > […]
> PHP
> > […]
> self-executable
> > […]
> version).
> > […]
>
>


-- 
Olivier Hoareau
Consultant Expert PHP / Coach Méthodologie Agile

PHPPRO
www.phppro.fr
Visitez le blog http://blog.phppro.fr !
