Is there something like this that can create an installer and run on a users machine without having to install Xampp and pdo extensions and server items ? Just asking cause I would love to look into using this if it does exist ?
Thank You All
Is there something like this that can create an installer and run on a users machine without having to install Xampp and pdo extensions and server items ? Just asking cause I would love to look into using this if it does exist ?
Thank You All
Yes, there is.
You can grab your php-only installers from the official PHP project website:
https://windows.php.net/download#php-8.4
You still may need to enable the extensions you need in the respective config file.
This will give you standalone CLI php that you can execute from the command prompt.
To serve websites you will need to add a webserver of your choice of course.
For building and shipping your full application as an installer that works out of the box, you may wanna take a look at InnoSetup.
https://jrsoftware.org/isinfo.php
Why would you NOT want to use Xammp? Xammp for Apple, Wamp for Windows.
They both are easy to install, can include Linux, PHP, MySql and other needed libraries.
With it you create a simple server, that can server your webpages and allow you full control
of the databases, tables, whatever you would need. Otherwise, you have to set up a Linux
system, easy on Mac’s or Windows. But, it won’t have PHP or databases by default.
Perhaps you should explain what you really want to do.
I can perfectly understand why people wouldn’t want to use those “All in one” Installers.
I wouldn’t use them either, even though they might be well suited for hobbyist or developers who just want to develop and are inexperienced in server administration.
Furthermore you may want to use a different DB or different webserver or may not need a webserver at all as you are only running scripts from CLI.
Regardless, it sounded like the intention was to give a PHP Software including all required runtime depts to someone who can just install and run it.
Either way, we don’t know that for sure