There are several ways to install Ray in WordPress.
Manually cloning the repo
wp-contents/plugin directory run this command
git clone email@example.com:spatie/wordpress-ray
Installing Ray via the WordPress admin UI
Ray is also registered as a plugin on WordPress.org. In the admin section of WordPress, go to "Plugins" > "Add New", and search for "Spatie Ray".
Install and activate the plugin.
Setting Environment variable
When developing locally you should have
WP_ENVIRONMENT_TYPE set as
local in your
wp-config.php otherwise Ray won't work.
define( 'WP_ENVIRONMENT_TYPE', 'local' );