oomphinc / drupal-scaffold
A Drupal scaffold project
Installs: 2 532
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 30
Forks: 10
Open Issues: 18
Type:project
Requires
- composer/installers: ^1.9
- cweagans/composer-patches: ^1.7
- drupal/admin_toolbar: ^3.3.0
- drupal/coder: ^8.3
- drupal/config_split: ^1.5
- drupal/core-composer-scaffold: ^9.5.7
- drupal/core-project-message: ^9.5.7
- drupal/core-recommended: ^9.5.7
- drupal/core-vendor-hardening: ^9.5.7
- drupal/devel: ^4.0
- drupal/seckit: ^2.0
- drush/drush: ^10.0
- oomphinc/composer-installers-extender: ^1.1 || ^2
Requires (Dev)
- jangregor/phpstan-prophecy: ^1.0
- mglaman/phpstan-drupal: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.8
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1
- phpstan/phpstan-strict-rules: ^1.3
- phpunit/phpunit: ^8
- sensiolabs/security-checker: ^6.0
- slevomat/coding-standard: ^8.1
- symfony/phpunit-bridge: ^5.1
- dev-main
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.2.2
- 1.2.1
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/elliptic-6.6.0
- dev-dependabot/npm_and_yarn/elliptic-6.5.7
- dev-syzygy333-state-cache
- dev-dependabot/npm_and_yarn/webpack-5.94.0
- dev-use-biome
- dev-dependabot/npm_and_yarn/multi-5b5b32f92b
- dev-syzygy333-patch-1
- dev-drupal10
- dev-next-drupal
- dev-dependabot/npm_and_yarn/glob-parent-and-webpack-5.1.2
This package is auto-updated.
Last update: 2024-10-30 00:32:29 UTC
README
Drupal scaffold project to kick-start development of a new instance of Drupal.
Dependencies
The only dependency this project has is Lando. All tools used for this project are containerized and wrapped with Lando.
For those using DDEV, a DDEV config file is included, however some of the tooling defined for Lando may not be available or will require using DDEV specific commands.
Getting started
Using Composer create-project
composer create-project oomphinc/drupal-scaffold my-project-name --ignore-platform-reqs
Using git clone
git clone git@github.com:oomphinc/drupal-scaffold.git
Place a copy of this repository in a new folder. In .lando.yml,
change the name of the project. Then run lando start
. This will
install all dependencies via composer.
You can then execute the site installation by running the drush site-install command shown below.
When prompted for database name, username, and password, enter drupal9
for all three.
When prompted for host, use the hostnames
value as reported when running:
lando info --service=database
(e.g. database.drupalscaffold.internal
)
Site install command:
$ lando drush site-install standard --account-pass=admin
The command above will install Drupal with the standard installation profile.
You can then log into Drupal as User 1 with admin
/ admin
as the credentials.
Lando
You can type lando
inside of the newly created project to see the available
commands. Tools like Composer and npm are available with:
$ lando composer
$ lando npm
PHPCS
PHPCS is configured to follow Oomph's best practices, which include strict type checking on all php files, adding type hints to all methods, adding type hints to all parameters.
$ lando phpcs
$ ddev exec phpcs
PHPStan
PHPStan has been included to also scan for strict type checking as well as any deprecations with Drupal.
$ lando phpstan
$ ddev exec phpstan
PHPUnit
$ lando phpunit
$ ddev exec phpunit