WP-Starter simplifies WordPress development by using Composer for package and dependency management. Composer allows to easily update WordPress plugins with semantic versioning (SemVer) and manage .org plugins via composer
. It keeps development environment consistent and maintainable.🚀
- Composer Integration: Manage WordPress core, themes, and plugins as dependencies.
- Semantic Versioning: Keep plugins updated with strict version control.\
- Custom Scripts: Automate salts reset and project cleanup.
Here's how the project is organized:
├── .env.example # Example environment configuration file
├── .gitignore # Files and directories to ignore in Git
├── composer.json # Composer dependencies and scripts
├── LICENSE # License information
├── public
│ ├── index.php # Main entry point
│ ├── wp-config.php # WordPress configuration file
│ ├── wp-content # WordPress content directory
│ │ └── index.php # Placeholder file
│ └── wp-uploads # WordPress uploads directory
│ └── index.php # Placeholder file
└── README.md # Project documentation
Ensure you have the following installed:
- Composer (Dependency Manager for PHP)
- PHP >= 8.0
-
Add the WP-Starter template to your Composer global config:
composer config --global repositories.wp-starter vcs https://github.com/ankitsamaddar/wp-starter.git
-
Create your WordPress project using the starter:
composer create-project --remove-vcs ankitsamaddar/wp-starter <your-project-name>
-
Navigate to your project directory:
cd <your-project-name>
With Local by Flywheel
-
Install Local.
winget install --id Flywheel.Local
-
Create a new WordPress site using the UI
-
Navigate to the site's
app
directory in the terminal. -
Run
rm -rf public
to delete thepublic
directory. -
Now install WordPress using:
composer create-project ankitsamaddar/wp-starter public
-
Click the link in Local UI to visit the site in the browser.
Open up the .env
file to edit database credentials or other WordPress constants.
WP-Starter comes with handy Composer scripts:
Reset your WordPress salts securely:
composer run reset-salts
This will remove all customizations and reset the project:
composer run reset
Warning: All your progress and customizations will be lost. To reinstall after a reset, use:
composer install
Contributions are welcome! Please fork the repository, create a feature branch, and submit a pull request.
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.
Have questions or need help? Create an issue in the GitHub repository.