{"id":14968657,"url":"https://github.com/webkings-ca/gocomposer","last_synced_at":"2025-10-26T05:30:28.987Z","repository":{"id":62547937,"uuid":"163344193","full_name":"WebKings-ca/gocomposer","owner":"WebKings-ca","description":"Converts Drupal 8 Sites to the latest Composer Managed Template","archived":false,"fork":false,"pushed_at":"2019-12-30T19:23:41.000Z","size":239,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T15:11:16.986Z","etag":null,"topics":["composer","demo","drupal","drupal8","plug","update"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebKings-ca.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}},"created_at":"2018-12-27T23:21:25.000Z","updated_at":"2024-03-19T22:23:26.000Z","dependencies_parsed_at":"2022-11-02T22:30:24.000Z","dependency_job_id":null,"html_url":"https://github.com/WebKings-ca/gocomposer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebKings-ca%2Fgocomposer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebKings-ca%2Fgocomposer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebKings-ca%2Fgocomposer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebKings-ca%2Fgocomposer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebKings-ca","download_url":"https://codeload.github.com/WebKings-ca/gocomposer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264672,"owners_count":19443388,"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":["composer","demo","drupal","drupal8","plug","update"],"created_at":"2024-09-24T13:40:21.904Z","updated_at":"2025-10-26T05:30:28.584Z","avatar_url":"https://github.com/WebKings-ca.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# GoComposer\n\n_GoComposer_ is an all in one solution to update existing Drupal 8 sites to the latest Fully Composer Managed template. It takes the template found in [drupal-project](https://github.com/drupal-composer/drupal-project) and automagically applies it to ypur site.\n\nJust add the _GoComposer_ Plug-in to your project, invoke one command and let this Plug-in do the rest...\n\nThe aim of this Plug-in is to morph all drupal 8 installation into a universal defualt template.\n\n_Having your Drupal 8 installation modified to this template will simplify future Drupal 8 Core \u0026 Contrib Modules updates. It's highly recommended you switch to this template_ \n\n\u003e## Intended Audience\n\n\u003e If you current Project is a Drupal 8 site with one of the following Scenarios, then _GoComposer_ is your one stop solution:\n\n\u003e * Scenario 1: You have installed your site initially through Composer using the `drupal/drupal` deprecated package.\n\n\u003e * Scenario 2: You have installed your site initially from a `tar.gz` or `zip` file.\n\n\u003e * Scenario 3: You have installed your site using `git clone` from the `Drupal.org` main repo.\n\n## Pre-requisites\n\n\u003e * It's highly recommended to implement this update on your local environment then update your production site\n\n\u003e * You have to have access to the bash shell command line to run this Plug-in. On Mac just use `Terminal`. On Windows 10, it's recomended to install the [Ubuntu Bash shell](https://tutorials.ubuntu.com/tutorial/tutorial-ubuntu-on-windows#0)\n\n\u003e * You have to have Composer installed globally on your local environment, If you haven't already done so, follow the instructions [here to download the executbale](https://getcomposer.org/download/) and [here to add it to your path](https://getcomposer.org/doc/00-intro.md#globally)\n\n\n\n## Features\n\nRunning the `gocomposer` Command will automate the process of Updating your existing custom site to the latest and greatest Drupal 8 version.\n\nThe 'gocomposer' Command will do the following:\n\n* Backup Your Existing Site files and Database and place them in the newly created `backup` folder at your Project Root.\n\n* Download the latest template from the [drupal-project](https://github.com/drupal-composer/drupal-project), Place it in a temporary folder\n\n* Extract the `template.composer.json` which is then populated with your existing site dependencies and then save it as your new `composer.json` file in your project root\n\n* Modify your whole sites folder structure to the new format. Moving the following directories to the new `/web` docroot:\n    * `/core`\n    * `/sites`\n    * `/libraries`\n    * `/profiles`\n    * `/modules`\n    * `/themes`\n    \n* Updates your `Drupal Core` \u0026 `Contrib Modules`  to the latest current version while preserving your existing project dependencies.\n\n* Automatically save your Current environment variables to `.env` in the Project root outside the `/web` docroot for increased security and future compatibility.\n\n* Automatically update your `settings.php` to pull in the Environment Variables from the `.env` file created above. The old `setting.php` file will be saved as `settings_orig.php` in your project root.\n\n* Automatically updates `Drupal Scaffolding` files such as `index.php`, `update.php`, `robots.txt`, etc to the latest version. \n\n* Runs final clean up scripts that finalize the modifications including updating your database.  \n\n\n## Installation\n\n```\ncd path/to/drupal/project/repo\n\ncomposer require webkings-ca/gocomposer:dev-master\n```\n\n## Usage:\n```\ncd path/to/drupal/project/repo\n\ncomposer require webkings-ca/gocomposer:dev-master\n\ncomposer gocomposer\n```\n\nMake sure you are in the Drupal root directory of your project, where `.git` is located.\n\n\n\u003eExample: \n```\n# Drupal Root is located in a `~/Sites/Drupal8project` subdirectory.\n\ncd ~/Sites/Drupal8project\n\ncomposer require webkings-ca/gocomposer:dev-master\n\ncomposer gocomposer\n\n```\n## Demo\n\n_You can watch a demo for using this Plug-in [here](https://www.youtube.com/watch?v=13tLIoSKr0s\u0026feature=youtu.be)_\n\n[![Drupal 8 GoComposer Demo](https://img.youtube.com/vi/13tLIoSKr0s/0.jpg)](https://youtu.be/13tLIoSKr0s)\n\n## Final Folder Structure\n\n_After Running GoComposer your site structure will be:_\n\n![Final Folder Structure](https://webkings.ca/sites/default/files/New%20Folder%20Structure.png)\n\n## Troubleshooting\n\n\u003e If you are unable to require `webkings-ca/gocomposer` due to your current Configuration try the following:\n\n```$xslt\n# Drupal Root is located in a `~/Sites/Drupal8project` subdirectory.\n\ncd ~/Sites/Drupal8project\n\nrm -rf vendor\n\ncomposer require webkings-ca/gocomposer:dev-master\n\ncomposer gocomposer\n\n```\n\n\u003e _Should you encounter any issues, Create an issue in the [issue queue](https://github.com/WebKings-ca/gocomposer/issues)_\n\n### Credits:\n\nThis project's code base template is taken from [composerize-drupal plugin](https://github.com/grasmash/composerize-drupal). It has been heavily modified to implement it's current functionality.\n\n### Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebkings-ca%2Fgocomposer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebkings-ca%2Fgocomposer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebkings-ca%2Fgocomposer/lists"}