{"id":16183727,"url":"https://github.com/wkhayrattee/wordpress-with-composer","last_synced_at":"2025-03-19T02:30:53.522Z","repository":{"id":62542764,"uuid":"72203764","full_name":"wkhayrattee/WordPress-With-Composer","owner":"wkhayrattee","description":"This is a base setup for using WordPress with composer \u0026 git workflow. See the readme of usage.","archived":false,"fork":false,"pushed_at":"2023-10-28T17:46:21.000Z","size":165,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T22:55:50.109Z","etag":null,"topics":["wordpress","wordpress-boilerplate","wordpress-development"],"latest_commit_sha":null,"homepage":"","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/wkhayrattee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-10-28T12:01:01.000Z","updated_at":"2024-01-29T18:23:23.000Z","dependencies_parsed_at":"2024-10-27T19:24:42.419Z","dependency_job_id":"11f90c53-f820-419a-9c56-a0971688276b","html_url":"https://github.com/wkhayrattee/WordPress-With-Composer","commit_stats":{"total_commits":93,"total_committers":3,"mean_commits":31.0,"dds":0.08602150537634412,"last_synced_commit":"1f661880a90e2fae8f429ddb5d9f097aa15a4f58"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkhayrattee%2FWordPress-With-Composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkhayrattee%2FWordPress-With-Composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkhayrattee%2FWordPress-With-Composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkhayrattee%2FWordPress-With-Composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wkhayrattee","download_url":"https://codeload.github.com/wkhayrattee/WordPress-With-Composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244341440,"owners_count":20437648,"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":["wordpress","wordpress-boilerplate","wordpress-development"],"created_at":"2024-10-10T07:06:19.718Z","updated_at":"2025-03-19T02:30:53.266Z","avatar_url":"https://github.com/wkhayrattee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Using WordPress With Composer \u0026 GIT workflow\n===============================================\n\nThis project is **production** ready.\n\nIf that matters, I have deployed several WooCommerce-based shops using this setup for the last 4yrs, as well as numourous WordPress blogs. \n\nI obviously also use it on the high production shops/websites for my professional work-place. So far, no issue or constraints. It makes working and developing in WordPress a joy. It makes automated deploy very neat { helps achieve part of the goals for [12-factor principle](https://12factor.net/) }.\n\nNow go rock your WordPress development workflow with confidence!\n\n## ## How To Use\n\n1) Use [Composer](https://getcomposer.org/) to setup the project:\n\n```\n$ composer create-project sevenphp/WordPresswithcomposer your_main_folder --no-dev --optimize-autoloader --prefer-dist -vv\n```\n\n\u003e NOTE: if on DEV environment, omit the **--no-dev --optimize-autoloader --prefer-dist**\n\n2) Setup your Config \u0026 .env files:\n\nInside the folder **www/env**, do:\n\n- rename *.env.example* to *.env* and adjust the values as per your context\n- Depending on whether you are on DEV or PRODuction, rename *_dev-sample.php* to *dev.php* and adjust the values as per your context\n\n==\u003e Then point your webServer to: path/to/your_main_folder/www/public\n\n3) Add any packages through Composer's **require** and enjoy building WordPress in a new flexible way, without using the dashboard - you control everything :)\n\n\n\n## ## Intro\n\nThis is not a \"project\" (as in a framework) per se, but more of an attempt to adjust the structure of WordPress for PHP developers to be able to add \u0026 use [Composer](https://getcomposer.org/) and [GIT](https://git-scm.com/) in their workflow.\n\nI'm a PHP developer and like to stay current. I had to embark into DEV-ing with WordPress. \n\nIn so-doing, I now feel differently positive about coding with WordPress as well, although I have been using WordPress since 2007 like crazy at a functional level for online purposes (like blogging..etc). \n\nWhile the code is not 5 star, WordPress in the philosophy is indeed amazing. \n\n**Think about it**, it's the _only_project_ that has not (never?) made its user-base suffer from upgrading. \n\nIt is always highly easy to upgrade. That, in itself is incredible! Anyway, so I wanted to be able to use GIT \u0026 a composer approach to my workflow and hence came up with this.\n\n### ### Your Feedback\nIf you use this project, I would love to hear from you as well. I may feature your project in here to showcase. So get in touch.\n\nNOTE: \n\nI know \u0026 have seen *roots.io*, but it goes way too far in their approach - modifying the structure of WordPress, it's too risky of an approach. It's kinda overdoing it. (No offence, but that's how I feel)\n\n### ### Objectives\n\n- Incorporate composer \u0026 git workflow into my daily WordPress dev\n- Make sure I do not divert too much from what WordPress advises in [Giving WordPress Its Own Directory](https://codex.WordPress.org/Giving_WordPress_Its_Own_Directory) and [Hardening WordPress](https://codex.WordPress.org/Hardening_WordPress)\n\n\n### CHANGELOG\n\n- Please see [CHANGELOG](CHANGELOG.md) for details.\n\n### REFERENCE\n\n- [Your Guide to Composer in WordPress](http://composer.rarst.net/recipe/site-stack#composerjson)\n- [https://wpackagist.org/](https://wpackagist.org/)\n- [https://packagist.org/packages/johnpbloch/WordPress](https://packagist.org/packages/johnpbloch/WordPress)\n- [Is moving wp-config outside the web root really beneficial?](http://WordPress.stackexchange.com/questions/58391/is-moving-wp-config-outside-the-web-root-really-beneficial/74972#74972)\n- [pantheon-systems](https://github.com/pantheon-systems)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkhayrattee%2Fwordpress-with-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwkhayrattee%2Fwordpress-with-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkhayrattee%2Fwordpress-with-composer/lists"}