alfwasim / drupal-installer
Help to install drupal project
v1.1.2
2026-06-15 12:27 UTC
Requires
- php: ^8.1
- symfony/process: ^7.0
README
A simple command-line tool for creating Drupal projects quickly using Composer.
Features
- Create a new Drupal project with a single command.
- Install the latest stable Drupal release.
- Install a specific Drupal version.
- Lightweight and easy to use.
- Distributed through Composer and Packagist.
Requirements
- PHP 8.1 or higher
- Composer
Installation
Install the package globally:
composer global require alfwasim/drupal-installer
PATH Configuration
If the drupal command is not available after installation, ensure Composer's global bin directory is included in your system PATH.
Find your Composer global bin directory:
composer global config bin-dir --absolute
For Bash:
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
For Zsh:
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Verify the installation:
which drupal
Expected output:
/home/username/.config/composer/vendor/bin/drupal
Usage
Create a project using the latest stable Drupal release:
drupal new my-site
Create a project using a specific Drupal version:
drupal new my-site 11 drupal new my-site 11.2.5
Examples
drupal new blog drupal new company-website drupal new news-portal 11.2.5
License
This project is open-sourced under the MIT License.
Author
Wasim Ansari
GitHub: https://github.com/meWasim