{"id":19356692,"url":"https://github.com/factorial-io/entity_scaffolder","last_synced_at":"2025-04-23T10:32:56.460Z","repository":{"id":48419785,"uuid":"135219629","full_name":"factorial-io/entity_scaffolder","owner":"factorial-io","description":"Drush plugin to scaffold entities in Drupal","archived":false,"fork":false,"pushed_at":"2024-09-09T21:14:46.000Z","size":1559,"stargazers_count":5,"open_issues_count":4,"forks_count":7,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-04-20T18:04:35.131Z","etag":null,"topics":["drupal","drupal-7","drush"],"latest_commit_sha":null,"homepage":"https://factorial-io.github.io/entity_scaffolder","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/factorial-io.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-28T23:54:54.000Z","updated_at":"2021-06-28T20:04:41.000Z","dependencies_parsed_at":"2023-01-18T19:46:27.051Z","dependency_job_id":null,"html_url":"https://github.com/factorial-io/entity_scaffolder","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fentity_scaffolder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fentity_scaffolder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fentity_scaffolder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/factorial-io%2Fentity_scaffolder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/factorial-io","download_url":"https://codeload.github.com/factorial-io/entity_scaffolder/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250416844,"owners_count":21427072,"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-7","drush"],"created_at":"2024-11-10T07:05:18.918Z","updated_at":"2025-04-23T10:32:51.449Z","avatar_url":"https://github.com/factorial-io.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is it?\nEntity Scaffolder is a drush plugin.\n\nIt reads the configuration from yaml files and creates appropriate feature files and preprocess functions.\n\n## For Drupal 8 and above\nCheck out https://github.com/factorial-io/phab-entity-scaffolder/ project for drupal 8 and above.\n\n## Documentation\n\nA detailed documentation is hosted here https://factorial-io.github.io/entity_scaffolder/.\nA video introduction can be found here https://vimeo.com/260325910\n\n## Installation\n- Checkout the code in `~/.drush/` so that it is recognized as plugin.\n- run `composer install`\n\n## Example Usage:\n1. Create gallery.yaml under `%drupal_root%/.tools/es/fpp/` so the structure looks like the following.\n\n    ```\n        .tools\n         |__es\n            |__fpp\n               |__gallery.yaml\n    ```\n\n2. Populate `gallery.yaml` with following content\n\n    ```\n    name: \"Awesome Gallery\"\n    machine_name: \"gallery\"\n    fields:\n      slideshow_images:\n        map: patternImages\n        type: image\n        cardinality: -1\n        label: Some Images\n        image_style: thumbnail\n      headline:\n        map: description\n        type: text_long\n        text_format_filtered_html: full_html\n        label: Headline\n      caption:\n        map: title\n        type: text\n        text_format_filtered_html: full_html\n        label: Caption\n\n    ```\n\n3. Run `drush es` in %drupal_root%\n4. A feature called `fe_es` and a module called `es_helper` should be created automatically with required files.\n5. Verify that the FPP called \"Awesome Gallery\" with \"Some Images\" field is created.\n6. Verify that preprocess function works as expected by creating a template called `fieldable-panels-pane--gallery.tpl.twig` and inspecting variable `patternImages`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffactorial-io%2Fentity_scaffolder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffactorial-io%2Fentity_scaffolder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffactorial-io%2Fentity_scaffolder/lists"}