{"id":15284577,"url":"https://github.com/drupal-code-builder/drupal-code-builder","last_synced_at":"2025-04-05T08:07:41.180Z","repository":{"id":41812401,"uuid":"52555754","full_name":"drupal-code-builder/drupal-code-builder","owner":"drupal-code-builder","description":"A library for building Drupal code.","archived":false,"fork":false,"pushed_at":"2025-03-22T10:13:15.000Z","size":5241,"stargazers_count":26,"open_issues_count":114,"forks_count":13,"subscribers_count":2,"default_branch":"4.4.x","last_synced_at":"2025-03-29T07:07:54.586Z","etag":null,"topics":["code-generation","drupal"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drupal-code-builder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-02-25T20:47:52.000Z","updated_at":"2025-03-22T10:12:21.000Z","dependencies_parsed_at":"2023-02-09T19:45:37.390Z","dependency_job_id":"9511fe8d-2b86-429e-8082-932cab391ddd","html_url":"https://github.com/drupal-code-builder/drupal-code-builder","commit_stats":{"total_commits":3460,"total_committers":10,"mean_commits":346.0,"dds":"0.015606936416184936","last_synced_commit":"8ca9261807e72d086fbde7b007c137f359687f43"},"previous_names":[],"tags_count":120,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-code-builder%2Fdrupal-code-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-code-builder%2Fdrupal-code-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-code-builder%2Fdrupal-code-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-code-builder%2Fdrupal-code-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drupal-code-builder","download_url":"https://codeload.github.com/drupal-code-builder/drupal-code-builder/tar.gz/refs/heads/4.4.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305934,"owners_count":20917208,"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":["code-generation","drupal"],"created_at":"2024-09-30T14:58:32.429Z","updated_at":"2025-04-05T08:07:41.142Z","avatar_url":"https://github.com/drupal-code-builder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Drupal Code Builder is a system for generating scaffold code for Drupal modules (and other components).\n\nThis is a library, and has no UI of its own. It can be used in several ways:\n- with the [Drupal Module Builder\n  project](https://www.drupal.org/project/module_builder), which provides a UI\n  within Drupal. (The Drupal Code Builder library was formerly part of the\n  Module Builder module.)\n- with the [Drush command\n  extension](https://github.com/drupal-code-builder/drupal-code-builder-drush).\n\nDrupal Code Builder can be used for any current version of Drupal. Older\nversions are unsupported, but it should produce code for versions going far back\nas Drupal 5.\n\nTests powered by PHPUnit ensure that the generated PHP code passes PHP linting,\nand adheres to Drupal Coding Standards, as enforced by PHP CodeSniffer.\n\n## What Drupal Code Builder can do\n\nDrupal Code Builder can generate the following for a module:\n- code files, containing hook implementations\n- info.yml file (.info file on Drupal 7 and older)\n- README file\n- PHPUnit test case classes, with presets for different types\n- Simpletest test case classes\n- annotated class plugins\n- YAML file plugins\n- services, with presets for tagged service types\n- content entity types, with bundle entity and base fields\n- config entity types, with properties\n- plugin types\n- theme hooks\n\nDefinitions of hooks, plugin types, and tagged service types are obtained by\nanalyzing the current Drupal codebase of the site where the library is used.\nThis means that Drupal Code Builder automatically knows about all hooks and\nplugin types from contrib and custom modules as well as those in Drupal core.\n\nFurthermore, complex subcomponents can generate multiple code elements:\n- an admin settings form adds form builder functions and an admin permission\n- router paths add menu/router items\n- permission names add the scaffold for the permission definition\n\n## Installation\n\nFollow the instructions given in the component that requests Drupal Coder\nBuilder (e.g., Module Builder, Drush command).\n\nAdditionally, if [Plugin module](https://www.drupal.org/project/plugin) is\npresent, plugin type definitions will be enhanced with its data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-code-builder%2Fdrupal-code-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrupal-code-builder%2Fdrupal-code-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-code-builder%2Fdrupal-code-builder/lists"}