Detect if a link is internal to enable easily setting target="_blank"
for external links.
Require the library with composer and use it in your blades like this:
<a href="{{ $uri }}" {!! \Onvardgmbh\WpLink::target($uri) !!}>Foo</a>
To run the tests, run composer run-script test
or composer run-script test:dox
in the project root directory.