Download the PHP package ayoub-amzil/wp-cli without Composer
On this page you can find all versions of the php package ayoub-amzil/wp-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ayoub-amzil/wp-cli
More information about ayoub-amzil/wp-cli
Files in ayoub-amzil/wp-cli
Package wp-cli
Short Description A command-line tool to download and install any version of WordPress with custom folder naming. Perfect for developers who need to quickly set up WordPress instances.
License
Informations about the package wp-cli
WordPress Installation Tool
A command-line tool to download and install any version of WordPress with custom folder naming. Perfect for developers who need to quickly set up WordPress instances.
Features
- Custom Folder Names: Specify a custom folder name or use the default version-based name.
- Version-Specific Downloads:
- Download specific WordPress versions (
v=major,v=major.minor, orv=major.minor.path). - Automatically constructs the correct download URL based on the version format.
- Download specific WordPress versions (
- Cross-Platform: Works on both Windows and Unix-based systems.
- Error Handling: Validates folder names, version formats, and checks if the specified version exists.
Installation
Install via Composer
Usage
Basic Usage
This will:
-
Fetch the latest WordPress version.
- Download and extract it into a folder named wordpress{version}{timestamp}.
Custom Folder Name
Specify a custom folder name:
This will:
-
Fetch the latest WordPress version.
- Download and extract it into a folder named my-project.
Specific WordPress Version
Download a specific version of WordPress:
Major Version Only
Downloads: https://wordpress.org/wordpress-6.0.zip
Major and Minor Version
Downloads: https://wordpress.org/wordpress-6.2.zip
Full Version with Patch
Downloads: https://wordpress.org/wordpress-6.2.1.zip
Custom Folder Name + Specific Version
Combine a custom folder name with a specific version:
This will:
-
Download WordPress 6.2.1.
- Extract it into a folder named my-project.
Examples
Example 1: Default Behavior
Output:
Example 2: Custom Folder + Specific Version
Output:
Example 3: Invalid Version
Output:
Error Handling
The tool provides clear error messages for common issues:
-
Invalid folder name: Only alphanumeric, hyphens, and underscores are allowed.
-
Invalid version format: Must be major, major.minor, or major.minor.path.
-
Version does not exist: Checks if the specified WordPress version is available for download.
- Directory already exists: Prevents overwriting existing directories.
-
Development
Requirements
-
PHP 8.0+
-
Composer
- ext-zip PHP extension
All versions of wp-cli with dependencies
ext-zip Version *
ext-json Version *