MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to Sign-in or login from PHP 7 using LinkedIn API?

In this blog, I am going to explain How to Login from PHP using LinkedIn API. So, before you go to XAMPP folder’s htdocs and create a new folder. After that, click right button and select “Git bash Here” and

type -“composer require guzzlehttp/guzzle:^7.0” after that auto-create composer, guzzlehttp, autoloader & some important file. After that, create a file as index.php as shown below- You can use extra CSS for attractive

Git Bash terminal running composer require guzzlehttp/guzzle:^7.0 in the ajForm project folder
AjForm project folder with vendor, composer.json, composer.lock and config.php after the Composer install
Vendor folder with composer, guzzlehttp, psr and ralouphie folders and autoload.php

These are folder after install Composer

Index.php login page with the heading login from PHP using LinkedIn API and a Sign In with LinkedIn button

This is form of Index.php

After that, create another file like “config.php” and type shown below-

After that, you will be required Client ID, and Client Secret, so these before going to https://www.linkedin.com/ developers and create app and fillup this form and create APP.

LinkedIn Developers welcome page with the Create app button
LinkedIn Developers Create an app form with LinkedIn Page, privacy policy URL, app logo and legal agreement fields
Auth tab in LinkedIn Developers showing the Client ID, a hidden Client Secret and the localhost callback redirect URL

When you create App id after that provide Client id & Client Secret in Config.php file and run index.php file in your browser before run you start XAMPP then will be run your index file like shown upper sign page and click sign in then next Sign in and Allow Login.

LinkedIn Welcome Back sign-in page with email and password fields, shown during the PHP app login
LinkedIn consent screen asking to allow ajForm to use email, name and photo, with Cancel and Allow buttons

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

How to Add Sign-in with Facebook feature in Laravel.

In this tutorial, we’re going learn how to add authentication via Facebook to a Laravel app. In Short, How to add Sign-in with Facebook feature in our…

Read More

Single Sign-On Implementations: Practical Comparison and Evaluation Guide

This guide expands a short 2015 link list of SSO tools into a practical DevOps reference. You will learn how SSO flows work, how to compare implementations, and how to validate integrations with real commands.

Read More

How Buying Likes and Comments on LinkedIn Helps DevOps Experts Gain Trust and Job Offers

There’s a particular kind of frustration DevOps professionals know well. You can spend years learning cloud infrastructure, automating deployments, fixing production issues at three in the morning…

Read More

Complete Tutorial: JWT (JSON Web Token) & OIDC (OpenID Connect)

1. 🔎 What is JWT? Definition Structure 2. 🔎 What is OIDC? Definition Key OIDC Tokens 3. ❓ Why do we need them? JWT OIDC 4. ⚙️…

Read More

Laravel: oauth_access_tokens clean up process

using Laravel Passport—the oauth_access_tokens table balloons when tokens aren’t expiring, not being revoked on logout, or not being purged. Here’s a practical, safe cleanup + prevention plan…

Read More

Top 10 Social Selling Tools in 2026: Features, Pros, Cons & Comparison

Introduction Social selling has emerged as a game-changer in the digital sales world. By leveraging social media platforms like LinkedIn, Twitter, and Facebook, businesses can engage with…

Read More