athaller / wordpress-composer-template
Composer template for bootstrapped Wordpress projects.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 17
Language:JavaScript
Type:project
Requires
- php: >=7.1
- composer/installers: ^1.7
- rarst/fragment-cache: ^1.3
- rarst/update-blocker: ^1.1
- roots/wordpress: >=5.3
Requires (Dev)
- rarst/laps: ^1.4.4
- rarst/toolbar-theme-switcher: ^1.5
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.4.2
- dev-master
- v1.0
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-4.0.1
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/hapi/hoek-8.5.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2025-03-11 21:08:23 UTC
README
This is a simple plug-n-play skeleton of a git-friendly Wordpress composer installation
Setup New Project
To get started using it, use the create-project
composer command:
composer create-project athaller/wordpress-composer-template
Getting Started
WordPress is a PHP/MySQL-based project. We have a basic development environment that you can quickly get up and running with a few commands. First off, you will need to download and install Docker, if you don't have it already. After that, there are a few commands to run:
Development Environment Commands
Running these commands will start the development environment:
npm install
npm run build:dev
npm run env:start
npm run env:install
Additionally, npm run env:stop
will stop the environment.
npm run env:cli
runs the WP-CLI tool. WP-CLI has a lot of useful commands you can use to work on your WordPress site. Where the documentation mentions running wp
, run npm run env:cli
instead. For example, npm run env:cli help
.
That's it!
Additionally, you can initialize git repository and configure it as you wish (existing .gitignore provides a good starting point).
Resources:
- https://github.com/wordpress/wordpress-develop
- https://roots.io/using-composer-with-wordpress/
- https://davidwinter.me/install-and-manage-wordpress-with-composer/
- http://composer.rarst.net/recipe/site-stack