Skip to content

onvardgmbh/wp-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WpLink

Build Status

Detect if a link is internal to enable easily setting target="_blank" for external links.

Usage

Require the library with composer and use it in your blades like this:

<a href="{{ $uri }}" {!! \Onvardgmbh\WpLink::target($uri) !!}>Foo</a>

Run Tests

To run the tests, run composer run-script test or composer run-script test:dox in the project root directory.