wp-launchpad/take-off

Initialisation library for the Launchpad framework

v1.0.5 2024-05-11 14:21 UTC

README

Take Off is the library containing the CLI command used to initialize a Launchpad project.

To install the library first launch the following command: composer require wp-launchpad/take-off --dev

Then at the root from your project you can create a builder file with the following content:

#!/usr/bin/php
<?php
use LaunchpadCLI\AppBuilder;

require_once __DIR__ . '/vendor/autoload.php';

AppBuilder::init(__DIR__ . '/../', [
        \LaunchpadTakeOff\ServiceProvider::class,
]);

Usage

To initialize the project run the following command: initialize.

On the command the following options are available:

Option Short option Value Default Description
name n your name false Name from the plugin
description d your description false Descripton from the plugin
author a the author false Author from the plugin
url u the url false URL from the plugin
php p PHP version false Minimal PHP version to make the plugin running
wp w WP version false Minimal WordPress version to make the plugin running