{"id":14955049,"url":"https://github.com/szepeviktor/composer-managed-wordpress","last_synced_at":"2025-06-23T07:04:32.369Z","repository":{"id":45571912,"uuid":"500402628","full_name":"szepeviktor/composer-managed-wordpress","owner":"szepeviktor","description":"Install and manage WordPress with Composer 👨‍🚀","archived":false,"fork":false,"pushed_at":"2025-06-21T06:43:49.000Z","size":116,"stargazers_count":26,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-21T07:33:39.749Z","etag":null,"topics":["composer","install","manage","packagist","wordpress","wordpress-development","wordpress-site"],"latest_commit_sha":null,"homepage":"https://github.com/szepeviktor/wordpress-website-lifecycle","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/szepeviktor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-06T11:18:14.000Z","updated_at":"2025-06-21T06:43:53.000Z","dependencies_parsed_at":"2023-09-27T08:54:22.083Z","dependency_job_id":"9a701f72-aeed-4a4e-b8c8-4c46024f591c","html_url":"https://github.com/szepeviktor/composer-managed-wordpress","commit_stats":{"total_commits":101,"total_committers":2,"mean_commits":50.5,"dds":0.09900990099009899,"last_synced_commit":"fb6422e2040b824ce17e34bfc32f55efb969c365"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/szepeviktor/composer-managed-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fcomposer-managed-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fcomposer-managed-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fcomposer-managed-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fcomposer-managed-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szepeviktor","download_url":"https://codeload.github.com/szepeviktor/composer-managed-wordpress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fcomposer-managed-wordpress/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261434111,"owners_count":23157201,"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","install","manage","packagist","wordpress","wordpress-development","wordpress-site"],"created_at":"2024-09-24T13:10:26.729Z","updated_at":"2025-06-23T07:04:27.358Z","avatar_url":"https://github.com/szepeviktor.png","language":"Shell","funding_links":["https://github.com/sponsors/szepeviktor"],"categories":[],"sub_categories":[],"readme":"# Composer managed WordPress\n\nYou may learn how I install WordPress.\nAlmost everything will come from Composer packages, the rest is under version control (git).\n\nThus the repository of a WordPress installation should barely contain files.\n\n## Support my work\n\nPlease consider sponsoring me monthly if you use my packages in an agency.\n\n[![Sponsor](https://github.com/szepeviktor/.github/raw/master/.github/assets/github-like-sponsor-button.svg)](https://github.com/sponsors/szepeviktor)\n\n## Directory structure\n\nMost of these files are excluded from this repository as they are installed by Composer!\n\n- `/`: root directory with configuration files and documents\n- `vendor/`: dependencies (packages)\n- `public/`: webserver's document [root](https://github.com/szepeviktor/RootFiles) with `index.php`, `wp-config.php`, `favicon.ico`\n- `public/$PROJECT_NAME/`: WordPress core\n- `public/wp-content/`: `wp-content` directory\n\n```\nvendor/\nUPGRADE.md\ncomposer.json\ncomposer.lock\nwp-cli.yml\npublic/─┬─index.php (modified)\n        ├─wp-config.php\n        ├─PROJECT_NAME/─┬─index.php\n        │               ├─wp-load.php\n        │               ├─wp-login.php\n        │               ├─wp-admin/\n        │               └─wp-includes/\n        └─wp-content/\n```\n\n## Package types\n\n- Themes from WordPress.org's theme directory through wpackagist\n- Your [custom theme](https://github.com/szepeviktor/starter-theme) should be developed as a separate package in a repository of its own\n- Plugins from WordPress.org's plugin directory through wpackagist\n- Your [custom plugins](https://github.com/szepeviktor/starter-plugin) should be developed as separate packages\n- Purchased plugins can be installed by `ffraenz/private-composer-installer`\n- Must-use plugins and dropins can be installed by `koodimonni/composer-dropin-installer`\n\nAll other files - except `public/wp-config.php` - should be kept under version control.\n\n## Usage\n\n1.  Run WordPress core, plugins and theme on PHP 7.4\n    ([as of 2024](https://johnbillion.github.io/wp-stats/php.html))\n1.  Change the directory name \"project\" in `.gitignore`, `composer.json`, `public/index.php`, `wp-cli.yml`\n1.  Customize `composer.json` and create documents\n1.  Create `.env` if you have purchased plugins\n1.  Add [MU plugins](https://github.com/szepeviktor/wordpress-website-lifecycle/tree/master/mu-plugins)\n1.  Set GitHub OAuth token if you develop a private theme or plugins\n    `composer config github-oauth.github.com \"$YOUR_GITHUB_TOKEN\"`\n1.  Create [`public/wp-config.php`](https://github.com/szepeviktor/wordpress-website-lifecycle/blob/master/wp-config/wp-config.php)\n    including  `WP_CONTENT_DIR` and `WP_CONTENT_URL` pointing to `public/wp-content`, and loading `vendor/autoload.php`\n1.  Set `WP_ENVIRONMENT_TYPE` environment variable\n    (in [PHP-FPM configuration](https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/phpfpm-pools/Skeleton-pool.conf)\n    or in `public/wp-config.php`)\n1.  Issue `composer update --no-dev`\n1.  Administer your WordPress installation with [WP-CLI](https://make.wordpress.org/cli/handbook/guides/installing/)\n    ```bash\n    wp core install --title=\"WP\" --admin_user=\"myname\" --admin_email=\"user@example.com\" --admin_password=\"12345\"\n    wp option update home \"https://example.com\"\n    wp option update siteurl \"https://example.com/project\"\n    ```\n\n## WordPress core installation\n\nThese are possible variations.\n\n- ⭐ `roots/wordpress-no-content` + `johnpbloch/wordpress-core-installer`\n- `johnpbloch/wordpress`\n- `repositories.package` with current ZIP file from wordpress.org\n- `roots/wordpress`\n\nPackages provided by Roots point to wordpress.org ZIP files and git repositories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszepeviktor%2Fcomposer-managed-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszepeviktor%2Fcomposer-managed-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszepeviktor%2Fcomposer-managed-wordpress/lists"}