Automatically Remove Ray calls

To avoid shipping your code with some ray() calls in it you can automate the removal of all ray() calls in your codebase.


If you are already using Rector this can be simply done by adding a rule to your rector.php config file:

use Spatie\Ray\Rector\RemoveRayCallRector;


#If you are not using Rector

If you are not using Rector you can use the script provided by the package:

./vendor/bin/ <path>
Help us improve this page