Skip to content

5-Minute Quickstart

This quickstart follows the Aegean Digital Studio distribution workflow in site/modules/Packages/examples/real-world/.

  1. Create a Tier and Package in Setup -> Packages

    Open Setup -> Packages -> License Tiers and create pro (Pro Commercial, model one_time_updates, 3 production sites, 365 update days, 30% renewal discount). Then open Packages and create booking-kit (aegean/booking-kit).

  2. Publish your first release ZIP via CLI

    Terminal window
    php vendor/bin/wire packages:publish booking-kit 2.1.0 ./build/aegean-booking-kit-2.1.0.zip \
    --changelog="Added multi-currency EUR/USD seasonal matrix and Composer v2 checksums." \
    --json
  3. Issue a customer license via CLI or PHP

    Terminal window
    php vendor/bin/wire packages:license:issue [email protected] \
    --package=booking-kit \
    --tier=pro \
    --model=one_time_updates \
    --days=365 \
    --domains=3 \
    --quantity=1 \
    --json

    The CLI prints the plaintext license key once (stored sealed via KeyCodec).

  4. Verify a production domain

    Your commercial module calls POST /packages/api/verify:

    Terminal window
    curl -X POST https://packages.aegeanvoyages.example/packages/api/verify \
    -H "Content-Type: application/json" \
    -d '{
    "license_key": "PKG-XXXX-XXXX-XXXX",
    "package_slug": "booking-kit",
    "domain": "aegeanvoyages.example",
    "module_version": "2.1.0"
    }'
  5. Install via Composer v2

    Add the private Composer v2 repository to the customer project’s composer.json (see site/modules/Packages/examples/real-world/composer-consumer.json):

    {
    "repositories": [
    {
    "type": "composer",
    "url": "https://packages.aegeanvoyages.example/composer"
    }
    ],
    "require": {
    "aegean/booking-kit": "^2.1"
    }
    }

    Authenticate with HTTP Basic using the customer email and either their license key or a pkg_tok_... Composer token generated in /portal/tokens:

    Terminal window
    composer config http-basic.packages.aegeanvoyages.example \
    pkg_tok_your_generated_token
    composer require aegean/booking-kit

Next steps