https://github.com/aubreypwd-old/example-wp-spatie-ray
Example repo with WordPress and Spatie Ray™ debugging.
https://github.com/aubreypwd-old/example-wp-spatie-ray
Last synced: about 2 months ago
JSON representation
Example repo with WordPress and Spatie Ray™ debugging.
- Host: GitHub
- URL: https://github.com/aubreypwd-old/example-wp-spatie-ray
- Owner: aubreypwd-old
- Created: 2022-01-07T17:14:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T17:54:22.000Z (over 3 years ago)
- Last Synced: 2025-04-07T13:37:18.664Z (about 2 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is this?
This is an example for Tom Mcfarlin's [Tweet](https://twitter.com/tommcfarlin/status/1479499427429687299) and [blog post](https://tommcfarlin.com/ray-per-project-at-an-application-level/) for setting up a WordPress Project that includes [Spatie Ray](https://spatie.be/products/ray) for debugging!
It also includes WordPress using `composer` as outlined in [this](https://salferrarello.com/install-wordpress-with-composer/) article by [Sal Ferrarello](https://salferrarello.com/).
TLDR: Everything you want to see is in [`composer.json`](composer.json) and [`wp-config.php`](wp-config.php)!
---
# What did I do?
```bash
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...
```## Then...
- Modified `index.php` like it says to [here](https://salferrarello.com/install-wordpress-with-composer/)
- Created `wp-config.php` using `wp config create --dbname=localhost --dbuser=root`
- Modified [`wp-config.php`](wp-config.php) (go see my notes there)# If you clone this repo
First run:
```bash
composer install
```Then move `wp-config.php` to `wp-config.php` (or symlink it).