Skip to content

linkedinURLValidator class is used to validate the linkedin public url.

License

Notifications You must be signed in to change notification settings

gchokeen/linkedinURLValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages