{"id":15014398,"url":"https://github.com/luc-cpl/wp-setup","last_synced_at":"2025-04-12T08:08:41.055Z","repository":{"id":233021290,"uuid":"785526174","full_name":"Luc-cpl/wp-setup","owner":"Luc-cpl","description":"Easily setup a modern Wordpress environment for seamless development and test.","archived":false,"fork":false,"pushed_at":"2025-04-07T01:17:47.000Z","size":146,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T08:05:33.765Z","etag":null,"topics":["docker","docker-compose","frankenphp","node","pest","php","phpunit","wordpress","wp-cli","wp-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Luc-cpl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGEOG.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,"zenodo":null}},"created_at":"2024-04-12T04:02:27.000Z","updated_at":"2025-04-07T01:17:50.000Z","dependencies_parsed_at":"2024-06-11T00:42:32.773Z","dependency_job_id":"0373244d-c36a-4cff-8f50-c68262fd6cad","html_url":"https://github.com/Luc-cpl/wp-setup","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"eed2dacee3dbcedee8983a1dbe2b090b2575e6d2"},"previous_names":["luc-cpl/wp-setup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc-cpl%2Fwp-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc-cpl%2Fwp-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc-cpl%2Fwp-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc-cpl%2Fwp-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luc-cpl","download_url":"https://codeload.github.com/Luc-cpl/wp-setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537137,"owners_count":21120709,"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":["docker","docker-compose","frankenphp","node","pest","php","phpunit","wordpress","wp-cli","wp-plugin"],"created_at":"2024-09-24T19:45:35.063Z","updated_at":"2025-04-12T08:08:41.035Z","avatar_url":"https://github.com/Luc-cpl.png","language":"TypeScript","readme":"# A simple and powerful WordPress environment\n\n## Features\n\n- **Dockerized WordPress** - Run WordPress in a Docker container.\n- **FrankenPHP** - The Modern PHP App Server, written in Go.\n- **WP-CLI** - The command line interface for WordPress.\n- **PHPUnit 10** - The PHP testing framework.\n- **Pest 2** - The elegant PHP testing framework.\n- **Xdebug** - The PHP debugger.\n- **Dev Container Support** - Easily run your project with Visual Studio Code.\n- **Node 22** - The Node.js runtime in CLI's container with npm, yarn and pnpm support.\n\n## Pre-requisites\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Node.js](https://nodejs.org/en/download/) \u003e= 18\n\nYes, you do not need any server, MySQL database or even PHP. All will run from our custom docker environment.\n\n## Installation\n\nAlthough it is possible and in some cases recommended to install WP Setup globally, we recommend to install at project basis. This way all configuration will bee keep in your project and can be easily replicate by all your team members. It can drastically reduce new tem members onboarding and facilitate project replication and testing.\n\nSo to add it in your project, first ensure you have a npm package started. If not you just need to run the following command in our project directory:\n\n```bash\nnpm init -y\n```\n\nThen you can simply add WP Setup as a development dependency to your project and call the init command to create your setup file.\n\n```bash\nnpm install wp-setup --save-dev\nnpx wp-setup init\n```\n\nThis commands will install WP Setup and will create a file called wp-setup.json in your project root directory. This file is responsible for all your configurations.\n\nAs you can see in the commands above, after install the WP Setup as dependency, you can run our CLI calling npx wp-setup \u003ccomand...\u003e. To simplify some usual commands, we recommend that you also add the following scripts to your package.json file (created after npm init).\n\n```json\n\"scripts\": {\n    \"env:start\": \"wp-setup start\",\n    \"env:stop\": \"wp-setup stop\",\n    \"env:destroy\": \"wp-setup destroy\",\n    \"env:composer\": \"wp-setup run wp-cli --workdir . composer\",\n    \"env:pest\": \"wp-setup run wp-test-cli --workdir . global-pest\"\n}\n```\n\nNow you can simply start your new environment just calling:\n\n```bash\nnpm run env:start\n# or\nnpx wp-setup start\n```\n\nAnd to stop the environment:\n\n```bash\nnpm run env:stop\n# or\nnpx wp-setup stop\n```\n\nAlso you can destroy the current environmend installation with all volumes running:\n\n```bash\nnpx wp-setup destroy\n```\n\n## Code Reference\n\nIf you find this project useful, please consider giving it a **Star** on [GitHub](https://github.com/Luc-cpl/wp-setup)!\n\nFor more details, check out the project documentation:\n\t- [WP Setup](https://lucascarvalho.site/wp-setup/docs/getting-started/)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/Luc-cpl/wp-setup/blob/main/README.md) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc-cpl%2Fwp-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluc-cpl%2Fwp-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc-cpl%2Fwp-setup/lists"}