php-assistant icon indicating copy to clipboard operation
php-assistant copied to clipboard

Bundle PHP in project

Open rafajaques opened this issue 9 years ago • 6 comments

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.

rafajaques avatar Jun 29 '16 21:06 rafajaques

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 avatar Jun 29 '16 22:06 germanocorrea

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

germanocorrea avatar Jun 29 '16 22:06 germanocorrea

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.

rafajaques avatar Jun 29 '16 22:06 rafajaques

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.

germanocorrea avatar Jun 29 '16 22:06 germanocorrea

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?

rafajaques avatar Oct 28 '16 11:10 rafajaques

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

peterbrinck avatar Oct 28 '16 21:10 peterbrinck