Install

Works with Drupal: ^10.1 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 23.91 KB
MD5: dbae0e0cc13e09f20a52ec09d748bc8c
SHA-1: 052ed686116f705efbeb387ed35fac8a927f56ad
SHA-256: 2f751fe1a39297419a258e2517636c02ef6505a7c252fc082e94626ba00e36f0
Download zip 47.14 KB
MD5: ebe606d051a3f03e4485b7053f98eec3
SHA-1: 3ace043e5452a16c9095d352c43c6b28265c4703
SHA-256: 9876a44b7d931519dc36b60921cfb336948924be022fd551733facf6ba689c31

Release notes

Highlights

  • Drupal 12 and PHP 8.5 are supported. The module now declares compatibility with ^10.1 || ^11 || ^12 and is tested on Drupal 11 and 12.0.0-beta2 with PHP 8.5. (#3597251)
  • Fixed a fatal error for unknown usernames. Entering a username that doesn't exist on drupal.org no longer crashes with "Call to a member function __isset() on null"; the form shows its validation message instead. (#3536828)
  • drupal.org outages no longer break validation. If the drupal.org API can't be reached, the lookup now fails cleanly and is not cached, so it is retried on the next request. While drupal.org is unreachable, a username can't be verified and is treated as invalid.

Dependencies

  • Requires hussainweb/drupal-api-client ^2.3, which supports guzzlehttp/psr7 3 and Guzzle 8 as shipped with Drupal 12. This also resolves #3565097.
  • Dropped php-http/guzzle7-adapter. Guzzle implements PSR-18 directly, so Drupal's http_client service is passed to the API client as is.

Developer experience

  • setup_dev.sh now builds a DDEV site on PHP 8.5 with Drupal 11 or 12 (./setup_dev.sh 12), using SQLite.
  • Tests were updated for PHPUnit 10+ (static data providers, attributes) and no longer use deprecated Symfony validator APIs; new unit tests cover the user info retriever.
  • The README now documents requirements and the development setup.

Upgrading

Run composer update drupal/do_username --with-dependencies. No configuration or database updates are needed.

Created by: hussainweb
Created on: 23 Oct 2026 at 02:19 UTC
Last updated: 23 Oct 2026 at 02:20 UTC
Bug fixes
New features

Other releases