{"id":20424357,"url":"https://github.com/bernix01/wc-dl-pl","last_synced_at":"2026-04-22T21:40:56.299Z","repository":{"id":72750211,"uuid":"107496758","full_name":"Bernix01/wc-dl-pl","owner":"Bernix01","description":"Woocommerce Datil plugin","archived":false,"fork":false,"pushed_at":"2018-10-28T02:41:39.000Z","size":455,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T04:43:16.982Z","etag":null,"topics":["plugin","wordpress","wp-cli","xdebug"],"latest_commit_sha":null,"homepage":null,"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/Bernix01.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-10-19T04:05:20.000Z","updated_at":"2018-10-28T02:41:41.000Z","dependencies_parsed_at":"2023-04-10T17:34:15.376Z","dependency_job_id":null,"html_url":"https://github.com/Bernix01/wc-dl-pl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bernix01/wc-dl-pl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernix01%2Fwc-dl-pl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernix01%2Fwc-dl-pl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernix01%2Fwc-dl-pl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernix01%2Fwc-dl-pl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bernix01","download_url":"https://codeload.github.com/Bernix01/wc-dl-pl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernix01%2Fwc-dl-pl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260419509,"owners_count":23006301,"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":["plugin","wordpress","wp-cli","xdebug"],"created_at":"2024-11-15T07:09:24.413Z","updated_at":"2026-04-22T21:40:51.263Z","avatar_url":"https://github.com/Bernix01.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Woocommerce Datil plugin :D by me.\n\n# WordPress plugin or theme development with Docker Compose\n\n[![Build status][build-status]][travis-ci]\n\nThis is an example repo for how one might wire up Docker Compose with the\n[chriszarate/wordpress][image] image for plugin or theme development. In\naddition to WP-CLI, PHPUnit, Composer, Xdebug, and the WordPress unit testing\nsuite, the `docker-compose.yml` file adds MariaDB and `nginx-proxy` to create a\ncomplete development environment that starts quickly.\n\n\n## Set up\n\n1. Clone or fork this repo.\n\n2. Put your plugin or theme code in the root of this folder and adjust the \n   `services/wordpress/volumes` section of `docker-compose.yml` so that it\n   syncs to the appropriate directory.\n\n   If you would like your plugin or theme activated when the container starts,\n   edit the `WORDPRESS_ACTIVATE_PLUGINS` or `WORDPRESS_ACTIVATE_THEME`\n   environment variables.\n\n3. Add `project.test` (or your chosen hostname) to `/etc/hosts`, e.g.:\n\n   ```\n   127.0.0.1 localhost project.test\n   ```\n\n   If you choose a different hostname, edit `.env` as well.\n\n\n## Start environment\n\n```sh\ndocker-compose up -d\n```\n\nThe first time you run this, it will take a few minutes to pull in the required\nimages. On subsequent runs, it should take less than 30 seconds before you can\nconnect to WordPress in your browser. (Most of this time is waiting for MariaDB\nto be ready to accept connections.)\n\nThe `-d` flag backgrounds the process and log output. To view logs for a\nspecific container, use `docker-compose logs [container]`, e.g.:\n\n```sh\ndocker-compose logs wordpress\n```\n\nPlease refer to the [Docker Compose documentation][docker-compose] for more\ninformation about starting, stopping, and interacting with your environment.\n\nLog in to `/wp-admin/` with `wordpress` / `wordpress`.\n\n\n## Update environment\n\nTo pull in the latest images (including `chriszarate/wordpress`), make sure your\nclone/fork of this repo is up to date, then run the following commands. Note\nthat this will **destroy** your current environment, including the database, and\nreset it to its initial state.\n\n```sh\ndocker-compose down\ndocker-compose pull\ndocker-compose up -d\n```\n\n\n## WP-CLI\n\nYou will probably want to [create a shell alias][3] for this:\n\n```sh\ndocker-compose exec --user www-data wordpress wp [command]\n```\n\n\n## Running tests (PHPUnit)\n\nThe tests in this example repo were generated with WP-CLI:\n\n```sh\ndocker-compose exec --user www-data wordpress wp scaffold plugin-tests my-plugin\n```\n\nThis is not required, however, and you can bring your own test scaffold. The\nimportant thing is that you provide a script to install your test dependencies,\nand that these dependencies are staged in `/tmp`.\n\nThe testing environment is provided by a separate Docker Compose file\n(`docker-compose.phpunit.yml`) to ensure isolation. To use it, you must first\nstart it, then manually run your test installation script. These commands work\nfor this example repo, but may not work for you if you use a different test\nscaffold (note that, in this environment, your code is mapped to `/app`):\n\n```sh\ndocker-compose -f docker-compose.yml -f docker-compose.phpunit.yml up -d\ndocker-compose -f docker-compose.phpunit.yml run --rm wordpress_phpunit /app/bin/install-wp-tests.sh wordpress_test root '' mysql_phpunit latest true\n```\n\nNow you are ready to run PHPUnit. Repeat this command as necessary:\n\n```sh\ndocker-compose -f docker-compose.phpunit.yml run --rm wordpress_phpunit phpunit\n```\n\n\n## Xdebug\n\nXdebug is installed but needs the IP of your local machine to connect to your\nlocal debugging client. Edit `.env` and populate the `DOCKER_LOCAL_IP`\nenvironment variable with your machine's (local network) IP address. The default\n`idekey` is `xdebug`.\n\nYou can enable profiling by appending instructions to `XDEBUG_CONFIG` in\n`docker-compose.yml`, e.g.:\n\n```\nXDEBUG_CONFIG: \"remote_host=${DOCKER_LOCAL_IP} idekey=xdebug profiler_enable=1 profiler_output_name=%R.%t.out\"\n```\n\nThis will output cachegrind files (named after the request URI and timestamp) to\n`/tmp` inside the WordPress container.\n\n\n## Seed MariaDB database\n\nThe `mariadb` image supports initializing the database with content by mounting\na volume to the database container at `/docker-entrypoint-initdb.d`. See the\n[MariaDB Docker docs][mariadb-docs] for more information.\n\n\n## Seed `wp-content`\n\nYou can seed `wp-content` with files (e.g., an uploads folder) by mounting a\nvolume to the `wordpress` container at `/tmp/wordpress/init-wp-content`.\nEverything in that folder will be copied to your installation's `wp-content`\nfolder.\n\n\n[build-status]: https://travis-ci.org/chriszarate/docker-compose-wordpress.svg?branch=master\n[travis-ci]: https://travis-ci.org/chriszarate/docker-compose-wordpress\n[image]: https://hub.docker.com/r/chriszarate/wordpress/\n[docker-compose]: https://docs.docker.com/compose/\n[mariadb-docs]: https://github.com/docker-library/docs/tree/master/mariadb#initializing-a-fresh-instance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernix01%2Fwc-dl-pl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernix01%2Fwc-dl-pl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernix01%2Fwc-dl-pl/lists"}