rafajaques / php-assistant

A cross-platform desktop app for testing PHP snippets
http://rafajaques.github.io/php-assistant
MIT License
130 stars 41 forks source link

Bundle PHP in project #128

Open rafajaques opened 8 years ago

rafajaques commented 8 years ago

This can be tricky, but will solve a lot of problems if done correctly.

Bundle the most recent version of PHP in each of the builds.

Move only necessary files.

Maybe moving always to the same place and with the same filename may do it work effortless.

germanocorrea commented 8 years ago

I think that could be created an option of using php versions already installed in the operating system (as it is now), or download (through some interface in the configs) some bundled PHP version.

germanocorrea commented 8 years ago

That would require a server with all the PHP versions you want to distribute, but would be something nice.

rafajaques commented 8 years ago

This would probably lead to someone having a lot of PHP versions locally. IMHO, I think the best approach would be having only the latest PHP version available as bundle and the option to set other versions locally.

germanocorrea commented 8 years ago

You're probably right, even because if someone wants to use another version, it is expected that this person may have other versions already installed.

rafajaques commented 7 years ago

The bundle is ready for Windows and Mac. I think most of Linux users have PHP installed, so that shouldn't be a problem. Anyway, is there any very simple PHP version that may run in every Linux distro?

peterbrinck commented 7 years ago

I also think that most Linux users have PHP installed already, but in case some doesn't, PHP Assistant could run a distro check, and then install PHP from the distros default packagemanager I think that could be a good way to do it, and get the newest version available

PHP is in most distros default repositories anyways, so that shouldn't be a problem