{"id":16487338,"url":"https://github.com/leoloso/wp-install","last_synced_at":"2025-03-23T12:33:49.327Z","repository":{"id":57013962,"uuid":"199313079","full_name":"leoloso/wp-install","owner":"leoloso","description":"Quickly install WordPress through Composer and WP-CLI","archived":false,"fork":false,"pushed_at":"2019-08-03T18:30:56.000Z","size":35,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T13:33:43.988Z","etag":null,"topics":["bootstrap","composer","wordpress"],"latest_commit_sha":null,"homepage":"","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/leoloso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-28T16:46:46.000Z","updated_at":"2024-03-07T12:33:53.000Z","dependencies_parsed_at":"2022-08-21T13:40:56.606Z","dependency_job_id":null,"html_url":"https://github.com/leoloso/wp-install","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloso%2Fwp-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloso%2Fwp-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloso%2Fwp-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloso%2Fwp-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoloso","download_url":"https://codeload.github.com/leoloso/wp-install/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221850982,"owners_count":16891694,"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":["bootstrap","composer","wordpress"],"created_at":"2024-10-11T13:33:47.249Z","updated_at":"2024-10-28T15:50:34.936Z","avatar_url":"https://github.com/leoloso.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install WordPress through Composer and WP-CLI\n\nQuickly launch a WordPress instance through Composer and WP-CLI\n\n## Install\n\nVia [Composer](https://getcomposer.org) and [WP-CLI](https://wp-cli.org/) (both are assumed to be installed globally):\n\n1. Create the [WordPress database and user](https://wordpress.org/support/article/how-to-install-wordpress/#step-2-create-the-database-and-a-user)\n2. Configure WordPress through environment variables: \n\n\u003e Copy the code below to an editor, replace all values (such as `{YOUR_SITE_DB_NAME}`) with your own values, and then either paste it on the terminal to execute, or save it in file \"~/.bash_profile\" and then execute `source ~/.bash_profile`.\n\n```bash\nexport DB_NAME={YOUR_SITE_DB_NAME} #eg: database\nexport DB_USER={YOUR_SITE_DB_USER} #eg: admin\nexport DB_PASSWORD={YOUR_SITE_DB_PASSWORD} #eg: sADF!kl9diq@#Sjfk\nexport DB_HOST={YOUR_SITE_DB_HOST} #eg: 127.0.0.1\nexport SITE_URL_WITHOUT_HTTP={YOUR_SITE_URL_WITHOUT_HTTP} #eg: localhost\nexport SITE_URL_WITH_HTTP={YOUR_SITE_URL_WITH_HTTP} #eg: http://localhost\nexport SITE_NAME=\"{YOUR_SITE_NAME}\" #eg: \"My awesome website\"\nexport ADMIN_USER={ADMIN_USER} #eg: admin\nexport ADMIN_PASSWORD={ADMIN_PASSWORD} #eg: JKo$@sfjASD00w\nexport ADMIN_EMAIL={ADMIN_EMAIL} #eg: pedro@example.com\n```\n\nTo set the SALT keys there are two alternatives:\n\nI. Set random values through environment variable `SHUFFLE_SALT_KEYS`:\n\n```bash\nexport SHUFFLE_SALT_KEYS=true\n```\n\nII. Set the corresponding values directly:\n\n```bash\n# Obtain random values from https://api.wordpress.org/secret-key/1.1/salt\nexport AUTH_KEY={YOUR_AUTH_KEY}\nexport SECURE_AUTH_KEY={YOUR_SECURE_AUTH_KEY}\nexport LOGGED_IN_KEY={YOUR_LOGGED_IN_KEY}\nexport NONCE_KEY={YOUR_NONCE_KEY}\nexport AUTH_SALT={YOUR_AUTH_SALT}\nexport SECURE_AUTH_SALT={YOUR_SECURE_AUTH_SALT}\nexport LOGGED_IN_SALT={YOUR_LOGGED_IN_SALT}\nexport NONCE_SALT={YOUR_NONCE_SALT}\n```\n\n3. Bootstrap a new project from this repo:\n\n```bash\ncomposer create-project leoloso/wp-install\n```\n\n4. Wait for a few minutes ☕️😁\n5. ✅ The site is installed under:\n\n    - 👉WordPress site: `{YOUR_SITE_URL_WITH_HTTP}`\n    - 👉WordPress admin: `{YOUR_SITE_URL_WITH_HTTP}/wp/wp-admin/`\n\n## Credits\n\n- [Leonardo Losoviz][link-author]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[link-author]: https://getpop.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoloso%2Fwp-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoloso%2Fwp-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoloso%2Fwp-install/lists"}