Skip to content

Instantly share code, notes, and snippets.

@soderlind
Last active March 14, 2025 22:53
Show Gist options
  • Select an option

  • Save soderlind/9b95fa498a4ba1c563cc3d30b03260ab to your computer and use it in GitHub Desktop.

Select an option

Save soderlind/9b95fa498a4ba1c563cc3d30b03260ab to your computer and use it in GitHub Desktop.

Revisions

  1. soderlind revised this gist Jun 10, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ Learn more at https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov
    </details>

    ### Send emails to Buggregator
    Save [mu-buggregator-smtp.php](#file-mu-buggregator-smtp-php) in your `mu-plugins` folder
    Save [`mu-buggregator-smtp.php`](#file-mu-buggregator-smtp-php) in your `mu-plugins` folder

    <details>
    <summary>Example: Email</summary>
  2. soderlind revised this gist Jun 7, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,8 @@
    0. (You need [docker](https://www.docker.com/products/docker-desktop/))
    1. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    2. Run `docker-compose up` in the same folder as the `docker-compose.yml` file.
    3. Buggregator is at http://127.0.0.1:8000/#/
    - Update buggregator by running `docker-compose pull`
    4. Buggregator is at http://127.0.0.1:8000/#/

    Learn more at https://docs.buggregator.dev/

  3. soderlind revised this gist Jun 5, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions mu-buggregator-smtp.php
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,6 @@
    */
    add_action( 'phpmailer_init', function( $phpmailer ) : void {
    $phpmailer->isSMTP();
    $phpmailer->Host = '127.0.0.1';
    $phpmailer->Port = 1025;
    $phpmailer->Host = '127.0.0.1';
    $phpmailer->Port = 1025;
    } );
  4. soderlind revised this gist Jun 5, 2024. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -45,4 +45,9 @@ Learn more at https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov
    </details>

    ### Send emails to Buggregator
    Save [mu-buggregator-smtp.php](#file-mu-buggregator-smtp-php) in your `mu-plugins` folder
    Save [mu-buggregator-smtp.php](#file-mu-buggregator-smtp-php) in your `mu-plugins` folder

    <details>
    <summary>Example: Email</summary>
    <img width="727" alt="mail" src="https://gist.github.com/assets/1649452/a6c0ec2e-a632-4252-a20e-ebe878610cf1">
    </details>
  5. soderlind revised this gist Jun 5, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Buggregator for WordPress local development
    # Buggregator for local WordPress development
    ## Buggregator

    0. (You need [docker](https://www.docker.com/products/docker-desktop/))
  6. soderlind revised this gist Jun 5, 2024. 2 changed files with 6 additions and 2 deletions.
    3 changes: 2 additions & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,8 @@ services:
    buggregator-database:
    condition: service_healthy
    ports:
    - 127.0.0.1:8000:8000
    - 127.0.0.1:8000:8000 # Sentry, Ray
    - 127.0.0.1:1025:1025 # SMTP
    environment:
    PERSISTENCE_DRIVER: database
    DB_DRIVER: pgsql
    5 changes: 4 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -42,4 +42,7 @@ Learn more at https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov
    <details>
    <summary>Example: Variable dump</summary>
    <img width="1037" alt="ray" src="https://gist.github.com/assets/1649452/951d92a8-f1c2-466b-9c44-414b5351c436">
    </details>
    </details>

    ### Send emails to Buggregator
    Save [mu-buggregator-smtp.php](#file-mu-buggregator-smtp-php) in your `mu-plugins` folder
  7. soderlind revised this gist Jun 5, 2024. 1 changed file with 25 additions and 0 deletions.
    25 changes: 25 additions & 0 deletions mu-buggregator-smtp.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    <?php
    /**
    * Plugin Name: MU Buggregator SMTP
    * Description: Send email to Buggregator. Will only log errors if WP_ENVIRONMENT_TYPE is set to 'local'.
    * Version: 1.0.0
    * Author: PerS
    * Author URI: https://www.soderlind.no/
    * License: GPL-2.0+
    * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    */

    if (! defined('WP_ENVIRONMENT_TYPE') || 'local' !== WP_ENVIRONMENT_TYPE) {
    return;
    }

    /**
    * Send emails to Buggregator
    *
    * @param \PHPMailer $phpmailer The PHPMailer instance (passed by reference).
    */
    add_action( 'phpmailer_init', function( $phpmailer ) : void {
    $phpmailer->isSMTP();
    $phpmailer->Host = '127.0.0.1';
    $phpmailer->Port = 1025;
    } );
  8. soderlind revised this gist May 27, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@

    # Buggregator for WordPress local development
    ## Buggregator

    0. (You need [docker](https://www.docker.com/products/docker-desktop/))
  9. soderlind revised this gist May 25, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,8 @@ if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'local' === WP_ENVIRONMENT_TYPE ) {
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
    }
    ```
    Learn more at https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov-file#usage

    <details>
    <summary>Example: Exeception</summary>
    <img width="878" alt="sentry" src="https://gist.github.com/assets/1649452/b70eb538-f521-45e2-b072-366127fc8a61">
  10. soderlind revised this gist May 25, 2024. No changes.
  11. soderlind revised this gist May 25, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'local' === WP_ENVIRONMENT_TYPE ) {
    }
    ```
    <details>
    <summary>Exeception</summary>
    <summary>Example: Exeception</summary>
    <img width="878" alt="sentry" src="https://gist.github.com/assets/1649452/b70eb538-f521-45e2-b072-366127fc8a61">
    </details>

    @@ -38,6 +38,6 @@ if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'local' === WP_ENVIRONMENT_TYPE ) {


    <details>
    <summary>Variable dump</summary>
    <summary>Example: Variable dump</summary>
    <img width="1037" alt="ray" src="https://gist.github.com/assets/1649452/951d92a8-f1c2-466b-9c44-414b5351c436">
    </details>
  12. soderlind revised this gist May 25, 2024. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -25,17 +25,19 @@ if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'local' === WP_ENVIRONMENT_TYPE ) {
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
    }
    ```
    Example exeception:

    <details>
    <summary>Exeception</summary>
    <img width="878" alt="sentry" src="https://gist.github.com/assets/1649452/b70eb538-f521-45e2-b072-366127fc8a61">

    </details>


    ### Dump stuff using ray
    1. Install ray in your project using composer: `composer --dev require spatie/ray`
    2. Copy [`ray.php`](#file-ray-php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`

    Example variable dump:

    <details>
    <summary>Variable dump</summary>
    <img width="1037" alt="ray" src="https://gist.github.com/assets/1649452/951d92a8-f1c2-466b-9c44-414b5351c436">
    </details>
  13. soderlind revised this gist May 25, 2024. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -16,9 +16,10 @@ Learn more at https://docs.buggregator.dev/
    1. Install [WP Sentry](https://wordpress.org/plugins/wp-sentry-integration/). You don't have to activate it. We will [load it early](https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov-file#loading-sentry-before-wordpress), to catch errors early.
    2. In `wp-config.php` add:
    ```php
    // NOTE: WP_ENVIRONMENT_TYPE must be defined and set to 'local'.
    // NOTE: WP_ENVIRONMENT_TYPE must be defined and set to 'local'. Uncomment the line below if it's not set by the server
    // define( 'WP_ENVIRONMENT_TYPE', 'local' );

    if (defined('WP_ENVIRONMENT_TYPE') && 'local' === WP_ENVIRONMENT_TYPE) {
    if ( defined( 'WP_ENVIRONMENT_TYPE' ) && 'local' === WP_ENVIRONMENT_TYPE ) {
    define( 'WP_SENTRY_PHP_DSN', 'http://[email protected]:8000/1' );
    define( 'WP_SENTRY_ERROR_TYPES', E_ALL & ~E_NOTICE & ~E_USER_NOTICE );
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
  14. soderlind revised this gist May 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -35,6 +35,6 @@ Example exeception:
    2. Copy [`ray.php`](#file-ray-php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`

    Example varible dump:
    Example variable dump:

    <img width="1037" alt="ray" src="https://gist.github.com/assets/1649452/951d92a8-f1c2-466b-9c44-414b5351c436">
  15. soderlind revised this gist May 23, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@

    0. (You need [docker](https://www.docker.com/products/docker-desktop/))
    1. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    2. Run `docker-compose up`
    2. Run `docker-compose up` in the same folder as the `docker-compose.yml` file.
    3. Buggregator is at http://127.0.0.1:8000/#/

    Learn more at https://docs.buggregator.dev/
  16. soderlind revised this gist May 23, 2024. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,8 @@ if (defined('WP_ENVIRONMENT_TYPE') && 'local' === WP_ENVIRONMENT_TYPE) {
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
    }
    ```
    Example exeception:

    <img width="878" alt="sentry" src="https://gist.github.com/assets/1649452/b70eb538-f521-45e2-b072-366127fc8a61">


    @@ -33,4 +35,6 @@ if (defined('WP_ENVIRONMENT_TYPE') && 'local' === WP_ENVIRONMENT_TYPE) {
    2. Copy [`ray.php`](#file-ray-php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`

    Example varible dump:

    <img width="1037" alt="ray" src="https://gist.github.com/assets/1649452/951d92a8-f1c2-466b-9c44-414b5351c436">
  17. soderlind revised this gist May 23, 2024. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,9 @@
    ## Buggregator

    0. (You need [docker](https://www.docker.com/products/docker-desktop/))
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    3. Run `docker-compose up`
    4. Buggregator is at http://127.0.0.1:8000/#/
    1. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    2. Run `docker-compose up`
    3. Buggregator is at http://127.0.0.1:8000/#/

    Learn more at https://docs.buggregator.dev/

  18. soderlind revised this gist May 23, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@

    ## Buggregator

    0. (You need docker)
    0. (You need [docker](https://www.docker.com/products/docker-desktop/))
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    3. Run `docker-compose up`
  19. soderlind revised this gist May 23, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@
    3. Run `docker-compose up`
    4. Buggregator is at http://127.0.0.1:8000/#/

    Learn more at https://docs.buggregator.dev/

    ## WordPress

    > Make sure `WP_ENVIRONMENT_TYPE`is set to `local`. [Local](https://localwp.com/) (by WPEngine) does that by default.
  20. soderlind revised this gist May 23, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    3. Run `docker-compose up`
    4. Buggregator is at http://127.0.0.1:8000/#/

    ## WordPress

  21. soderlind revised this gist May 23, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,4 @@ if (defined('WP_ENVIRONMENT_TYPE') && 'local' === WP_ENVIRONMENT_TYPE) {
    2. Copy [`ray.php`](#file-ray-php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`

    <img width="977" alt="ray" src="https://gist.github.com/assets/1649452/dfd7a2b1-e9f9-4a1a-a8c2-81edcea16127">
    <img width="1037" alt="ray" src="https://gist.github.com/assets/1649452/951d92a8-f1c2-466b-9c44-414b5351c436">
  22. soderlind revised this gist May 23, 2024. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@

    ## Buggregator

    0. (You need docker)
    @@ -21,8 +22,13 @@ if (defined('WP_ENVIRONMENT_TYPE') && 'local' === WP_ENVIRONMENT_TYPE) {
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
    }
    ```
    <img width="878" alt="sentry" src="https://gist.github.com/assets/1649452/b70eb538-f521-45e2-b072-366127fc8a61">



    ### Dump stuff using ray
    1. Install ray in your project using composer: `composer --dev require spatie/ray`
    2. Copy [`ray.php`](#file-ray-php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`

    <img width="977" alt="ray" src="https://gist.github.com/assets/1649452/dfd7a2b1-e9f9-4a1a-a8c2-81edcea16127">
  23. soderlind revised this gist May 23, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@
    > Make sure `WP_ENVIRONMENT_TYPE`is set to `local`. [Local](https://localwp.com/) (by WPEngine) does that by default.
    ### Log errors using WP Sentry
    1. Install [WP Sentry](https://wordpress.org/plugins/wp-sentry-integration/)
    1. Install [WP Sentry](https://wordpress.org/plugins/wp-sentry-integration/). You don't have to activate it. We will [load it early](https://github.com/stayallive/wp-sentry/tree/v7.13.0?tab=readme-ov-file#loading-sentry-before-wordpress), to catch errors early.
    2. In `wp-config.php` add:
    ```php
    // NOTE: WP_ENVIRONMENT_TYPE must be defined and set to 'local'.
  24. soderlind revised this gist May 23, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@

    0. (You need docker)
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the [`docker-compose.yml`](#file-docker-compose-yml)
    2. Save the [`docker-compose.yml`](#file-docker-compose-yml) file.
    3. Run `docker-compose up`

    ## WordPress

    > Make sure `WP_ENVIRONMENT_TYPE`is set to `local`
    > Make sure `WP_ENVIRONMENT_TYPE`is set to `local`. [Local](https://localwp.com/) (by WPEngine) does that by default.
    ### Log errors using WP Sentry
    1. Install [WP Sentry](https://wordpress.org/plugins/wp-sentry-integration/)
  25. soderlind revised this gist May 23, 2024. 2 changed files with 13 additions and 3 deletions.
    3 changes: 3 additions & 0 deletions ray.php
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    <?php
    if ( ! defined( 'WP_ENVIRONMENT_TYPE' ) || 'local' !== WP_ENVIRONMENT_TYPE ) {
    return;
    }


    return [
    13 changes: 10 additions & 3 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -6,13 +6,20 @@
    3. Run `docker-compose up`

    ## WordPress

    > Make sure `WP_ENVIRONMENT_TYPE`is set to `local`
    ### Log errors using WP Sentry
    1. Install [WP Sentry](https://wordpress.org/plugins/wp-sentry-integration/)
    2. In `wp-config.php` add:
    ```php
    define( 'WP_SENTRY_PHP_DSN', 'http://[email protected]:8000/1' );
    define( 'WP_SENTRY_ERROR_TYPES', E_ALL & ~E_NOTICE & ~E_USER_NOTICE );
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
    // NOTE: WP_ENVIRONMENT_TYPE must be defined and set to 'local'.

    if (defined('WP_ENVIRONMENT_TYPE') && 'local' === WP_ENVIRONMENT_TYPE) {
    define( 'WP_SENTRY_PHP_DSN', 'http://[email protected]:8000/1' );
    define( 'WP_SENTRY_ERROR_TYPES', E_ALL & ~E_NOTICE & ~E_USER_NOTICE );
    require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php';
    }
    ```

    ### Dump stuff using ray
  26. soderlind revised this gist May 22, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    0. (You need docker)
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the [`docker-compose.yml`](#file-docker-compose.yml)
    2. Save the [`docker-compose.yml`](#file-docker-compose-yml)
    3. Run `docker-compose up`

    ## WordPress
    @@ -17,5 +17,5 @@ require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php'

    ### Dump stuff using ray
    1. Install ray in your project using composer: `composer --dev require spatie/ray`
    2. Copy [`ray.php`](#file-ray.php) to the root of your WordPress site
    2. Copy [`ray.php`](#file-ray-php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`
  27. soderlind revised this gist May 22, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    0. (You need docker)
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the `docker-compose.yml` (file's further down)
    2. Save the [`docker-compose.yml`](#file-docker-compose.yml)
    3. Run `docker-compose up`

    ## WordPress
    @@ -17,5 +17,5 @@ require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php'

    ### Dump stuff using ray
    1. Install ray in your project using composer: `composer --dev require spatie/ray`
    2. Copy `ray.php` (file's further down) to the root of your WordPress site
    2. Copy [`ray.php`](#file-ray.php) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`
  28. soderlind revised this gist May 22, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    0. (You need docker)
    1. Follow the instalation guide at https://buggregator.dev/#install
    2. Save the docker-compose.yml
    2. Save the `docker-compose.yml` (file's further down)
    3. Run `docker-compose up`

    ## WordPress
    @@ -17,5 +17,5 @@ require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php'

    ### Dump stuff using ray
    1. Install ray in your project using composer: `composer --dev require spatie/ray`
    2. Copy `ray.php` to the root of your WordPress site.
    2. Copy `ray.php` (file's further down) to the root of your WordPress site
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`
  29. soderlind revised this gist May 22, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,4 @@ require_once __DIR__ . '/wp-content/plugins/wp-sentry-integration/wp-sentry.php'
    ### Dump stuff using ray
    1. Install ray in your project using composer: `composer --dev require spatie/ray`
    2. Copy `ray.php` to the root of your WordPress site.
    3. Now you can [dump to bloggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`
    3. Now you can [dump to buggregator](https://docs.buggregator.dev/config/ray.html), from your project, using `\ray( $var );`
  30. soderlind revised this gist May 22, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ray.php
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    <?php
    // Save this in a file called "ray.php"


    return [
    /*