This is an example for Tom Mcfarlin's Tweet and blog post for setting up a WordPress Project that includes Spatie Ray for debugging!
It also includes WordPress using composer
as outlined in this article by Sal Ferrarello.
TLDR: Everything you want to see is in composer.json
and wp-config.php
!
composer init # Duh
composer require johnpbloch/wordpress # Require WordPress, see https://salferrarello.com/install-wordpress-with-composer/
composer require --dev spatie/ray # Require Spatie Ray so I can ray() things...
- Modified
index.php
like it says to here - Created
wp-config.php
usingwp config create --dbname=localhost --dbuser=root
- Modified
wp-config.php
(go see my notes there)
First run:
composer install
Then move wp-config.php
to wp-config.php
(or symlink it).