Login with LinkedInTutorial
Create new application on LinkedIn Developer Console. Provide necessary detail for the application, keep website url as http://localhost/site-name or http://domain-name/website-name/ and get application secret and application id.
Change the app credential in login.php file.