{"id":20320220,"url":"https://github.com/julienloizelet/ddev-tools","last_synced_at":"2026-04-28T16:36:31.315Z","repository":{"id":143065273,"uuid":"613208541","full_name":"julienloizelet/ddev-tools","owner":"julienloizelet","description":"My DDEV add-on","archived":false,"fork":false,"pushed_at":"2024-03-14T08:52:36.000Z","size":131,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T02:44:55.300Z","etag":null,"topics":["add-on","ddev","magento2","php","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/julienloizelet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-03-13T05:47:57.000Z","updated_at":"2023-12-08T12:27:13.000Z","dependencies_parsed_at":"2023-04-05T11:16:23.765Z","dependency_job_id":"1c48bbe1-66b0-41ea-ac8f-fd19d01b7d31","html_url":"https://github.com/julienloizelet/ddev-tools","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienloizelet%2Fddev-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienloizelet%2Fddev-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienloizelet%2Fddev-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julienloizelet%2Fddev-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julienloizelet","download_url":"https://codeload.github.com/julienloizelet/ddev-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241820743,"owners_count":20025599,"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":["add-on","ddev","magento2","php","wordpress"],"created_at":"2024-11-14T18:49:24.063Z","updated_at":"2026-04-28T16:36:26.295Z","avatar_url":"https://github.com/julienloizelet.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DDEV tools\n\n[![Version](https://img.shields.io/github/v/release/julienloizelet/ddev-tools?include_prereleases)](https://github.com/julienloizelet/ddev-tools/releases)\n\n**Table of Contents**\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Requirements](#requirements)\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Work on a Magento 2 / Mage-OS module](#work-on-a-magento-2--mage-os-module)\n    - [Prepare DDEV environment](#prepare-ddev-environment)\n    - [Magento 2 installation](#magento-2-installation)\n    - [Set up Magento 2](#set-up-magento-2)\n    - [Configure Magento 2 for local development](#configure-magento-2-for-local-development)\n    - [Install your module](#install-your-module)\n  - [Work on a WordPress plugin](#work-on-a-wordpress-plugin)\n    - [Prepare DDEV environment](#prepare-ddev-environment-1)\n    - [WordPress installation](#wordpress-installation)\n    - [Set up WordPress](#set-up-wordpress)\n    - [Install your plugin](#install-your-plugin)\n- [License](#license)\n- [Contribute](#contribute)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Requirements\n\nThis add-on depends on [DDEV](https://ddev.readthedocs.io/en/stable/).\n\n## Introduction\n\nThe purpose of this DDEV add-on is to share my development DDEV's tools.\n\nI mainly use it to work on Magento 2 modules, WordPress plugins and other PHP projects.\n\n## Installation\n\n`ddev get julienloizelet/ddev-tools`\n\n## Usage\n\n### Work on a Magento 2 / Mage-OS module\n\n#### Prepare DDEV environment\n\nThe final structure of the project will look like below.\n\n```\nm2-sources\n│\n│ (Magento 2 sources installed with composer)\n│\n└───.ddev\n│   │\n│   │ (DDEV files)\n│\n└───my-own-modules\n    │\n    │\n    └───yourVendorName-yourModuleName\n       │\n       │ (Sources of a module)\n\n```\n\n##### Create a Magento 2 DDEV project\n\n```bash\nmkdir m2-sources \u0026\u0026 cd m2-sources\nddev config --project-type=magento2 --project-name=your-project-name --php-version=8.1 --docroot=pub --create-docroot --disable-settings-management\n```\n\n##### Install tools add-on and copy some files\n\n```bash\nddev get julienloizelet/ddev-tools\nddev get ddev/ddev-elasticsearch\nddev start\n```\n\n#### Magento 2 installation\n\nYou will need your Magento 2 credentials to install the source code.\n\n     ddev composer create --repository=https://repo.magento.com/ magento/project-community-edition -y\n\n#### Set up Magento 2\n\n     ddev magento setup:install \\\n                           --base-url=https://your-project-name.ddev.site \\\n                           --db-host=db \\\n                           --db-name=db \\\n                           --db-user=db \\\n                           --db-password=db \\\n                           --backend-frontname=admin \\\n                           --admin-firstname=admin \\\n                           --admin-lastname=admin \\\n                           --admin-email=admin@admin.com \\\n                           --admin-user=**** \\\n                           --admin-password=**** \\\n                           --language=en_US \\\n                           --currency=USD \\\n                           --timezone=America/Chicago \\\n                           --use-rewrites=1 \\\n                           --search-engine=elasticsearch7 \\\n                           --elasticsearch-host=elasticsearch\n\nThis should take ages.\n\n#### Configure Magento 2 for local development\n\n    ddev magento config:set admin/security/password_is_forced 0\n    ddev magento config:set admin/security/password_lifetime 0\n    ddev magento module:disable Magento_AdminAdobeImsTwoFactorAuth (Magento \u003e= 2.4.6 only)\n    ddev magento module:disable Magento_TwoFactorAuth\n    ddev magento indexer:reindex\n    ddev magento c:c\n\n#### Install your module\n\n```\ncd m2-sources\nmkdir -p my-own-modules/yourVendorName-yourModuleName\ncd my-own-modules/yourVendorName-yourModuleName\ngit clone git@github.com:yourGithubName/yourGithubModule.git ./\nddev composer config repositories.yourVendorName-yourModuleName path my-own-modules/yourVendorName-yourModuleName/\nddev composer require yourComposerModuleName:@dev\nddev magento module:enable yourVendorName_yourModuleName\nddev magento setup:upgrade\nddev magento cache:flush\n```\n\n### Work on a WordPress plugin\n\n#### Prepare DDEV environment\n\nThe final structure of the project will look like below.\n\n```\nwp-sources\n│\n│ (WordPress sources)\n│\n└───.ddev\n│   │\n│   │ (DDEV files)\n│\n└───wp-content\n    │\n    │\n    └───plugins\n       │\n       │\n       └───your-plugin-name (only if you want to test some of your plugin(s))\n\n```\n\n##### Create a WordPress DDEV project\n\n```bash\nmkdir wp-sources \u0026\u0026 cd wp-sources\nddev config --project-type=wordpress --project-name=your-project-name\n```\n\n##### Install tools add-on and copy some files\n\n```bash\nddev get julienloizelet/ddev-tools\nddev start\n```\n\n#### WordPress installation\n\n```bash\nddev wp core download\n```\n\n#### Set up WordPress\n\n```bash\n     ddev exec wp core install --url='https://your-project-name.ddev.site' --title='WordPress' --admin_user='****' --admin_password='****' --admin_email='admin@admin.com'\n```\n\n#### Install your plugin\n\n```\ncd wp-sources\nmkdir -p wp-content/plugins/your-plugin-name \u0026\u0026 cd wp-content/plugins/your-plugin-name\ngit clone git@github.com:your-git-repo/your-plugin-repo.git ./\n```\n\n## License\n\n[MIT](LICENSE)\n\n## Contribute\n\nAnyone is welcome to submit a pull request to this repository.\n\n**Contributed and maintained by [julienloizelet](https://github.com/julienloizelet)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienloizelet%2Fddev-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienloizelet%2Fddev-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienloizelet%2Fddev-tools/lists"}