{"id":19302073,"url":"https://github.com/wodby/wordpress-composer","last_synced_at":"2025-05-08T21:21:07.506Z","repository":{"id":44454382,"uuid":"98171237","full_name":"wodby/wordpress-composer","owner":"wodby","description":"Composer template for WordPress projects.","archived":false,"fork":false,"pushed_at":"2022-07-11T09:29:01.000Z","size":20,"stargazers_count":70,"open_issues_count":2,"forks_count":46,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-04T03:40:04.116Z","etag":null,"topics":["composer","wordpress"],"latest_commit_sha":null,"homepage":"","language":null,"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/wodby.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-07-24T09:05:46.000Z","updated_at":"2025-02-20T22:11:21.000Z","dependencies_parsed_at":"2022-09-19T17:31:01.173Z","dependency_job_id":null,"html_url":"https://github.com/wodby/wordpress-composer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodby%2Fwordpress-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodby%2Fwordpress-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodby%2Fwordpress-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wodby%2Fwordpress-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wodby","download_url":"https://codeload.github.com/wodby/wordpress-composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253150075,"owners_count":21861829,"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","wordpress"],"created_at":"2024-11-09T23:19:50.672Z","updated_at":"2025-05-08T21:21:07.425Z","avatar_url":"https://github.com/wodby.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer Template for WordPress Projects\n\nThis project template should provide a kickstart for managing your site dependencies with [Composer](https://getcomposer.org/).\n\nThis project consist of:\n\n* WordPress core: [johnpbloch/wordpress-core-installer](https://github.com/johnpbloch/wordpress-core-installer)\n* Repository https://wpackagist.org/ to install WordPress plugins and themes\n* `composer/installers` to set custom paths for plugins and themes\n* `drupal-composer/preserve-paths` to exclude paths for plugins and themes under version control \n* `wodby.yml` that runs `composer install`. You can remove it if you're not using [Wodby](https://wodby.com)\n\nCurrent WordPress core: `~5.0`\n\n### Paths\n\nBy default, wordpress core will be installed in `./web` directory. Plugins and themes will be installed in `./web/wp-content/plugins` and `./web/wp-content/themes`. Point your Apache vhost or similar to this project's `./web` directory.\n\n### Usage\n\nFirst you need to [install composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).\n\n\u003e Note: The instructions below refer to the [global composer installation](https://getcomposer.org/doc/00-intro.md#globally). You might need to replace `composer` with `php composer.phar` (or similar) for your setup.\n\nStart a new project:\n\n```\ncomposer create-project wodby/wordpress-composer some-dir --stability dev --no-interaction\n```\n\nThe `composer create-project` command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file.\n\n### How to install WordPress plugins and themes?\n\nWith `composer require ...` you can download new dependencies to your installation.\n\n```\ncd some-dir\ncomposer require wpackagist-plugin/wp-cfm\n```\n\n### How to manage my custom themes and plugins under version control?\n\n1. Exclude path to your plugin or theme from .gitignore. Example for theme under `web/wp-content/themes/my-custom-theme/`:\n    ```\n    !web/\n    web/*\n    !web/wp-content/\n    web/wp-content/*\n    !web/wp-content/themes/\n    web/wp-content/themes/*\n    !web/wp-content/themes/my-custom-theme/\n    ``` \n2. Add the same path to your composer.json under `extra \u003e preserve-paths`: \n    ```\n    \"preserve-paths\": [\n      \"web/wp-content/themes/custom\"\n    ]\n    ```\n3. Add your plugin/theme directory under version control\n4. Run `composer install`. Composer will install WordPress core and keep your custom theme\n\n### Deployment via Wodby\n\n1. Create a new project. \n2. Connect the repository to Wodby.\n3. Deploy new app, choose WordPress stack, on the 2nd step of the form choose connected repository and enter `web` as Codebase dir.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwodby%2Fwordpress-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwodby%2Fwordpress-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwodby%2Fwordpress-composer/lists"}