diff --git a/simplehtmldom.info.yml b/simplehtmldom.info.yml
index 51e19a5..1ce4f31 100644
--- a/simplehtmldom.info.yml
+++ b/simplehtmldom.info.yml
@@ -1,4 +1,4 @@
 name: Simplehtmldom API
 type: module
 description: 'A bridge between the PHP Simple HTML DOM Parser library and Drupal.'
-core_version_requirement: ^8.8 || ^9.0 || ^10.0 || ^11
+core_version_requirement: ^10.1 || ^11 || ^12
diff --git a/simplehtmldom.module b/simplehtmldom.module
index b522a02..f7f0b16 100644
--- a/simplehtmldom.module
+++ b/simplehtmldom.module
@@ -5,6 +5,8 @@
  * Include the only file of the library.
  */
 
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\simplehtmldom\Hook\SimplehtmldomHooks;
 use Drupal\Core\Routing\RouteMatchInterface;
 
 /**
@@ -12,11 +14,7 @@ use Drupal\Core\Routing\RouteMatchInterface;
  *
  * Provides additional information about the module.
  */
+#[LegacyHook]
 function simplehtmldom_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    case 'help.page.simplehtmldom':
-      $output = '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('Provides a bridge between PHP Simple HTML DOM Parser (simplehtmldom) library and Drupal.') . '</p>';
-      return $output;
-  }
+  return \Drupal::service(SimplehtmldomHooks::class)->help($route_name, $route_match);
 }
diff --git a/simplehtmldom.services.yml b/simplehtmldom.services.yml
new file mode 100644
index 0000000..b38cded
--- /dev/null
+++ b/simplehtmldom.services.yml
@@ -0,0 +1,5 @@
+
+services:
+  Drupal\simplehtmldom\Hook\SimplehtmldomHooks:
+    class: Drupal\simplehtmldom\Hook\SimplehtmldomHooks
+    autowire: true
diff --git a/src/Hook/SimplehtmldomHooks.php b/src/Hook/SimplehtmldomHooks.php
new file mode 100644
index 0000000..fca21d7
--- /dev/null
+++ b/src/Hook/SimplehtmldomHooks.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\simplehtmldom\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+
+/**
+ * Hook implementations for simplehtmldom.
+ */
+class SimplehtmldomHooks {
+  use StringTranslationTrait;
+
+  /**
+   * Implements hook_help().
+   *
+   * Provides additional information about the module.
+   */
+  #[Hook('help')]
+  public function help($route_name, RouteMatchInterface $route_match) {
+    switch ($route_name) {
+      case 'help.page.simplehtmldom':
+        $output = '<h3>' . $this->t('About') . '</h3>';
+        $output .= '<p>' . $this->t('Provides a bridge between PHP Simple HTML DOM Parser (simplehtmldom) library and Drupal.') . '</p>';
+        return $output;
+    }
+  }
+
+}
diff --git a/tests/src/Functional/SimplehtmldomTest.php b/tests/src/Functional/SimplehtmldomTest.php
index 32c4236..ac45f5e 100644
--- a/tests/src/Functional/SimplehtmldomTest.php
+++ b/tests/src/Functional/SimplehtmldomTest.php
@@ -2,12 +2,14 @@
 
 namespace Drupal\Tests\simplehtmldom\Functional;
 
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\BrowserTestBase;
 use simplehtmldom\HtmlWeb;
 
 /**
  * Class SimplehtmldomTest. Provide default tests for simplehtmldom module.
  */
+#[RunTestsInSeparateProcesses]
 class SimplehtmldomTest extends BrowserTestBase {
 
   /**
