zaherg/litepress-composer-commands

Composer commands for Litepress project setup and management

0.0.3 2025-01-19 07:29 UTC

This package is auto-updated.

Last update: 2025-02-19 07:45:42 UTC


README

This package provides Composer commands for setting up and managing Litepress projects. It handles various tasks such as:

  • Project initialization
  • Database setup
  • WordPress installation
  • WP-CLI configuration
  • Cleanup operations

Installation

composer require zaherg/litepress-composer-commands

Usage

Add the following to your composer.json scripts section:

{
    "scripts": {
        "post-create-project-cmd": [
            "Composer\\Litepress\\ScriptHandler::handleCreateProject"
        ],
        "post-install-cmd": [
            "Composer\\Litepress\\ScriptHandler::handleDatabase",
            "Composer\\Litepress\\ScriptHandler::handleWordPressInstallation",
            "Composer\\Litepress\\ScriptHandler::handleGeneratingWPCliConfigFile"
        ],
        "cleanup": [
            "Composer\\Litepress\\ScriptHandler::handleCleanup"
        ],
        "re-install": [
            "Composer\\Litepress\\ScriptHandler::handleReinstall"
        ]
    }
}

Requirements

  • PHP 8.3 or higher
  • Composer 2.0 or higher

License

MIT