Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gormus/wordpress
WordPress managed via Composer.
https://github.com/gormus/wordpress
composer composer-project php wordpress
Last synced: 3 days ago
JSON representation
WordPress managed via Composer.
- Host: GitHub
- URL: https://github.com/gormus/wordpress
- Owner: gormus
- License: gpl-3.0
- Created: 2019-09-15T06:03:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T01:54:24.000Z (about 5 years ago)
- Last Synced: 2025-01-22T12:46:58.910Z (6 days ago)
- Topics: composer, composer-project, php, wordpress
- Language: PHP
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress
**This is a WordPress project managed via Composer**
This project serves as an example, and a baseline for Composer managed WordPress projects.
It's built using [John P. Bloch's composer-ized WordPress mirror](https://github.com/johnpbloch/wordpress-core) for the core; [WordPress Packagist](https://wpackagist.org/) for registered WordPress plugins, and themes; and [oomphinc/composer-installers-extender]() package for custom installation path support.
Besides the WordPress core, following also added as minimalist examples:
* [Classic Editor](https://wordpress.org/plugins/classic-editor/) plugin.
* [cweagans/composer-patches](https://packagist.org/packages/cweagans/composer-patches) to apply patches via Composer.
* [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer), and [WordPress coding standards](https://github.com/WordPress/WordPress-Coding-Standards).## Installation
```sh
composer create-project gormus/wordpress your_folder
```## PHP_CodeSniffer
The first time this project is installed, [WordPress coding standards](https://github.com/WordPress/WordPress-Coding-Standards#rulesets) are installed as well. They can also be installed via following command:
`composer run-script install-codestandards`Try running `./vendor/bin/phpcs -i` to list all installed standards; following should be listed in the output:
_WordPress_, _WordPress-Extra_, _WordPress-Docs_ and _WordPress-Core_.The installed code sniffer, and standards can be used either via Composer, in shell scripts, or even in your favorite IDE. Here are a few examples:
**Run PHP_CodeSniffer in current directory using _WordPress_ standard:**
`composer run phpcs .`
**Fix _wp-config.local.php_ file using _WordPress_ standard:**
`composer run phpcbf wp-config.local.php`
**Configure Visual Studio Code and [phpcs](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs) plugin to use _WordPress_ standard**
```settings.json
{
"phpcs.standard": "./vendor/wp-coding-standards/wpcs/WordPress/ruleset.xml"
}
```