Magento 2 Class “LaminasOAuthConsumer” not Found error

We are using the LaminasOAuthConsumer class in our custom Magento 2 extension to generate OAuth 1.0a request tokens for Twitter social login. The implementation works fine in Magento 2.4.7, but after upgrading to Magento 2.4.8, it no longer works because Magento has removed the laminas/laminas-oauth package in this version.

Previous Working Code (Magento 2.4.7):

use LaminasOAuthConsumer;

$config = [
    'callbackUrl' => 'https://localhost/hyva/sociallogin/index/twitter/',
    'siteUrl' => 'https://api.twitter.com/oauth',
    'consumerKey' => 'your_twitter_consumer_key',
    'consumerSecret' => 'your_twitter_consumer_secret'
];

$oauth = new Consumer($config);
$requestToken = $oauth->getRequestToken();

n Magento 2.4.8, this code fails with a fatal error because the LaminasOAuthConsumer class is no longer available.

Since LaminasOAuthConsumer has been removed in Magento 2.4.8, what is the recommended approach or replacement class for generating Twitter OAuth 1.0a tokens without using third-party libraries.
Any guidance, example code, or suggestions for manually building the OAuth 1.0a request (e.g., using cURL and HMAC-SHA1 signing) would be greatly appreciated.