PHPackages                             kgaut/kgaut\_tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kgaut/kgaut\_tools

ActiveDrupal-module

kgaut/kgaut\_tools
==================

Tools and services for drupal 8

2.0.23(1y ago)114.4k↓50%1[1 PRs](https://github.com/kgaut/kgaut_tools/pulls)GPL-2.0+PHP

Since Feb 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kgaut/kgaut_tools)[ Packagist](https://packagist.org/packages/kgaut/kgaut_tools)[ Docs](https://github.com/kgaut/kgaut_tools)[ RSS](/packages/kgaut-kgaut-tools/feed)WikiDiscussions 2.0.x Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (26)Used By (0)

Toolbox module for Drupal 8
===========================

[](#toolbox-module-for-drupal-8)

Installation
------------

[](#installation)

`composer require kgaut/kgaut_tools`

Features
--------

[](#features)

### CleanString Service

[](#cleanstring-service)

Transliterate and remove special char from a string.

```
$mystring = "Hello World";
// 'hello-world'
$cleanString = \Drupal::service('kgaut_tools.stringcleaner')->clean($categorie->name);
//'hello_world'
$cleanStringWithoutDash = \Drupal::service('kgaut_tools.stringcleaner')->clean($categorie->name,true);
```

### TranslationImporter Service

[](#translationimporter-service)

Allow to import translation for a given string with a given language.

Usage example :

```
$translationImporter = \Drupal::service('kgaut_tools.translation_importer');
$translationImporter->importTranslation("I love drupal", 'fr', "J'aime drupal");

```

### Create image derivates during upload

[](#create-image-derivates-during-upload)

Inspired by @flocondetoile's post :

### Add new useful var to all templates :

[](#add-new-useful-var-to-all-templates-)

- basepath : Drupal basepath() value (not always available)
- pathtotheme : path to active theme
- pathtotfiles : path to public files directory

### User templates suggestions :

[](#user-templates-suggestions-)

Add templates suggestions for user entity based on the view mode ie : user--compact.html.twig

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Recently: every ~9 days

Total

25

Last Release

620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98c8cc2314f3a86369098d1465b7144f6c4249e82d98c6f39fabb76bb97d396d?d=identicon)[kgaut](/maintainers/kgaut)

---

Top Contributors

[![kgaut](https://avatars.githubusercontent.com/u/736910?v=4)](https://github.com/kgaut "kgaut (143 commits)")

---

Tags

drupaldrupal-8toolboxdrupal

### Embed Badge

![Health badge](/badges/kgaut-kgaut-tools/health.svg)

```
[![Health](https://phpackages.com/badges/kgaut-kgaut-tools/health.svg)](https://phpackages.com/packages/kgaut-kgaut-tools)
```

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
