webship / webships
The Webships installer: choose an API site template. It enables no modules of its own; the site template you choose decides what the site has.
Requires
- composer/composer: ^2.8
- composer/installers: ~2
- drupal/core: ^11.4 || ^12
- drupal/core-composer-scaffold: ^11.4 || ^12
- drush/drush: ^13 || ^14
- oomphinc/composer-installers-extender: ~2
Requires (Dev)
- drupal/webapi_starter: 2.0.x-dev
- vardot/swagger-ui: ^5.32
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 3.0.x-dev
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.x-dev
- 1.0.x-dev
- dev-3496453-ddev-install-docs
- dev-3496452-add-automated-functional-testing-with
- dev-3496451-rewrite-the-readme
- dev-3496450-let-sites-default-site-templates
- dev-3496449-allow-drush-14-so-the
- dev-3496448-stop-writing-node-settings-before
- dev-3496447-use-claro-for-the-installer
- dev-3496446-ask-for-the-site-template
- dev-3496444-drop-unsatisfied-schema-modules
- dev-3496438-gitlab-github-templates-1.0.x
- dev-3496438-gitlab-github-templates-2.0.x
This package is auto-updated.
Last update: 2026-11-18 04:45:54 UTC
README
The Webships installer: an installation profile that asks for an API site template, applies it, and gets out of the way. It enables no modules of its own; the site template you choose decides what the site has.
Table of contents
- Features
- Requirements
- Installation
- Configuration
- Usage
Features
- A "Choose site template" step in the Drupal installer, between setting up the database and configuring the site.
- Two curated API site templates, listed in
site-templates.yml:- Webships Starter
(
drupal/webships_starter): a web apps gallery with organizations, served over JSON:API. - WebAPI Starter
(
drupal/webapi_starter): a read-only JSON:API from/apiwith OAuth 2.0 and Swagger UI documentation.
- Webships Starter
(
- Any recipe of
type: Sitein the project's recipes directory is offered too, and wins over the curated entry of the same name. - A curated site template that is not in the code base yet is required with Composer during the install.
- The administrator role recipe from core is always applied.
- The profile uninstalls itself when the install is done.
Requirements
Drupal core ^11.4. The profile also declares ^12, but the site
templates depend on contributed modules that have no Drupal 12 release
yet, so build on Drupal 11.4 for now.
To let the installer require a site template with Composer, the project root must be writable by the web server. Otherwise only the site templates already in the recipes directory are offered.
Installation
Start from the Webships Project template. It requires this profile and both site templates, so nothing is downloaded during the install:
mkdir myapi && cd myapi ddev config --project-type=drupal --docroot=web ddev start ddev composer create-project drupal/webships_project:^1.0 ddev restart ddev launch
Composer, PHP, Drush and the database all run inside
DDEV,
so nothing is needed on your machine but DDEV itself. ddev restart picks up
the .ddev/config.yaml the template ships, which replaces the one ddev config wrote. The site is at https://<directory>.ddev.site.
On an existing DDEV project, require the profile and install it. Its recipes
directory comes from the type:drupal-recipe installer path:
ddev composer require webship/webships:~3.0
ddev drush site:install webships --account-name=webmaster -y
Without DDEV, the same two commands are composer require webship/webships:~3.0
and vendor/bin/drush site:install webships -y, against a PHP 8.4 and
MySQL/MariaDB stack of your own.
Configuration
To limit or replace the list of site templates, convert
site-templates.yml to a PHP array (<?php return [...];) and save it
as sites/default/site-templates.php. Entries can point at a local
directory with a path key instead of a package.
Usage
In the browser, open the site and follow the installer: choose a site template, then set up the site name and the administrator account.
From the command line, name the site template with the form ID of the template step. Without it, Webships Starter is chosen:
ddev drush site:install webships \
installer_site_template_form.add_ons=webapi_starter \
--account-name=webmaster -y