{"id":16362870,"url":"https://github.com/kgaut/kgaut_tools","last_synced_at":"2025-03-23T02:31:37.042Z","repository":{"id":57006086,"uuid":"76646211","full_name":"kgaut/kgaut_tools","owner":"kgaut","description":"Drupal 8 toolbox module","archived":false,"fork":false,"pushed_at":"2024-09-05T16:01:30.000Z","size":144,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"2.0.x","last_synced_at":"2024-10-12T02:25:34.119Z","etag":null,"topics":["drupal","drupal-8","toolbox"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kgaut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-16T10:49:10.000Z","updated_at":"2024-09-05T16:01:05.000Z","dependencies_parsed_at":"2023-12-19T05:55:27.801Z","dependency_job_id":"31b08059-b685-4ee5-a6e7-8967c1372ab3","html_url":"https://github.com/kgaut/kgaut_tools","commit_stats":{"total_commits":130,"total_committers":1,"mean_commits":130.0,"dds":0.0,"last_synced_commit":"0b17e16300f1d328a7e9184a677e10cd9cc4913e"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgaut%2Fkgaut_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgaut%2Fkgaut_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgaut%2Fkgaut_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgaut%2Fkgaut_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgaut","download_url":"https://codeload.github.com/kgaut/kgaut_tools/tar.gz/refs/heads/2.0.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221842221,"owners_count":16890129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","drupal-8","toolbox"],"created_at":"2024-10-11T02:25:42.203Z","updated_at":"2024-10-28T14:44:54.780Z","avatar_url":"https://github.com/kgaut.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toolbox module for Drupal 8\n\n## Installation\n\n`composer require kgaut/kgaut_tools`\n\n## Features\n### CleanString Service\nTransliterate and remove special char from a string.\n```php\n$mystring = \"Hello World\";\n// 'hello-world'\n$cleanString = \\Drupal::service('kgaut_tools.stringcleaner')-\u003eclean($categorie-\u003ename); \n//'hello_world'\n$cleanStringWithoutDash = \\Drupal::service('kgaut_tools.stringcleaner')-\u003eclean($categorie-\u003ename,true); \n```\n\n### TranslationImporter Service\n\nAllow to import translation for a given string with a given language.\n\nUsage example : \n\n```\n$translationImporter = \\Drupal::service('kgaut_tools.translation_importer');\n$translationImporter-\u003eimportTranslation(\"I love drupal\", 'fr', \"J'aime drupal\");\n```\n\n### Create image derivates during upload\nInspired by @flocondetoile's post : http://flocondetoile.fr/blog/generate-programmatically-image-styles-drupal-8\n\n### Add new useful var to all templates : \n\n  - basepath : Drupal basepath() value (not always available)\n  - pathtotheme : path to active theme\n  - pathtotfiles : path to public files directory\n\n### User templates suggestions :\n\nAdd templates suggestions for user entity based on the view mode ie : user--compact.html.twig","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgaut%2Fkgaut_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgaut%2Fkgaut_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgaut%2Fkgaut_tools/lists"}