Skip to content

getphporg/getphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

getPHP - Local PHP Stack. One Command. Done.

Launch your local PHP web stack with a single command! Enjoy a full development environment without the bloat of a desktop application. Visit getPHP.org to subscribe for updates of this project.

Copy & Paste This Into Your Terminal

macOS (M1 - M5):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/getphporg/getphp/HEAD/getphp.sh)"

Ubuntu, Debian, etc.:

if ! command -v curl &> /dev/null; then sudo apt install -y curl; fi && source <(curl -fsSL https://raw.githubusercontent.com/getphporg/getphp/HEAD/getphp.sh)

Windows 11:

powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/getphporg/getphp/HEAD/getphp.ps1'))"

Video Tutorial

If you want to see the script in action and learn how to use it, check out the video tutorial below:

Watch the video

Zero Footprint

The getPHP script runs entirely in-memory and never installs itself on your machine. Only the PHP stack is added if you choose to install it. To manage services, update, or uninstall the stack, simply re-run the command in your terminal at any time.

What does the getPHP script do?

It lets you install and manage (update, restart, delete, etc.) your local PHP web stack.

How does getPHP work?

It is a shell script that runs directly from GitHub and leaves no footprint on your system. Your PHP stack is only installed once you explicitly choose to do so.

What exactly happens during installation?

The getPHP script installs and configures everything you need to start PHP web development on your machine:

  • installs OS-specific prerequisites
  • creates the document root directory
  • creates the logs directory
  • installs Apache
  • installs MySQL
  • installs PHP
  • installs phpMyAdmin
  • fixes server root
  • enables port 80 in Apache
  • updates the document root and directory targets
  • updates logs files destinations
  • enables the rewrite_module
  • updates the DirectoryIndex
  • enables the php_module
  • creates alias for phpMyAdmin
  • enables the most common PHP extensions
  • enables the extension directory
  • sets blowfish_secret for phpMyAdmin
  • enables passwordless login in phpMyAdmin
  • synchronizes .dll files if needed
  • adds PHP to system path
  • creates a phpinfo.php file to test PHP
  • starts the httpd service
  • starts the mysql service
  • starts the php service

... and much more that you would otherwise have to configure manually.

Is the getPHP script free?

Yes, the getPHP script is 100% free and open source.

Support & Contributions

If you enjoy using getPHP, please give it a star on GitHub to help others find it.

If you run into any errors or bugs, please let me know by opening an issue or sending a pull request.

You can also directly contact me through the Support Page at getPHP.org.


Disclaimer: getPHP is an independent, open-source tool and is not affiliated with, sponsored by, or endorsed by the PHP Group or the PHP Foundation.