Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

zaherg/litepress-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Litepress Composer Commands

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

About

Composer commands used for the litepress project

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages