A lightweight PHP script that automatically downloads and extracts the latest WordPress (Persian or English) version supporting both CLI and Web modes.
- π₯οΈ Web Mode: Simple form to select language and install via browser
- π» CLI Mode: Interactive or flag-based setup (
--lang=faor--lang=en) - π¦ Automatically downloads the latest ZIP package
- π§© Auto-extracts using
ZipArchive(if available) - β‘ Works on all PHP environments (Linux, Windows, macOS)
- π Cleans up old installations before extracting new files
Run the installer from terminal:
php wordpress-installer.php --lang=fa
# or
php wordpress-installer.phpIf you donβt pass a flag, it will ask interactively:
Which language do you want? [fa/en]:
Place the file on your server and open it in your browser:
http://localhost/wordpress-installer.php
Select your desired language (ΩΨ§Ψ±Ψ³Ϋ or English) and click Install.
-
Asks the user which language of WordPress to install
-
Downloads the ZIP file:
- Persian β
https://fa.wordpress.org/latest-fa_IR.zip - English β
https://wordpress.org/latest.zip
- Persian β
-
Extracts it automatically (if
ZipArchiveexists) -
WordPress is ready in the current directory (
wordpress/folder)
- PHP 7.4+
cURLextension enabled- (Optional)
ZipArchiveextension for automatic extraction
MIT License Copyright (c) 2025
Seyyed Ali Mohammadiyeh (Max Base) π https://github.com/BaseMax