Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

linkedinURLValidator

linkedinURLValidator class is used to validate the linkedin public url.

##How to use


require_once 'linkedinURLValidator.php';

$url = 'http://www.linkedin.com/company/xxxxxxx';

$validator = new linkedinURLValidator($url);

$result = $validator->validate();


if($result['valid'] && $result['type'] == 'company'){
	
	echo 'Url is valid linkedin company url ';
	echo $validator->get_company_id();
}
else if($result['valid']){

    echo 'Url is valid linkedin public profile url';
}
else{
    echo 'Url is not linkedin public profile url';
}


About

linkedinURLValidator class is used to validate the linkedin public url.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages