fedyak / php-yc-iamtoken
IAM-token for a Yandex Cloud service account
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/fedyak/php-yc-iamtoken
Requires
- php: ^7.4|^8.0
- ixudra/curl: 6.*
- phpseclib/phpseclib: ^2.0
This package is auto-updated.
Last update: 2025-09-08 22:02:30 UTC
README
Getting an IAM token for a Yandex Cloud service account
Install
composer require fedyak/php-yc-iamtoken
Example
// Service Account ID $service_account_id = '....'; // Service Account Key ID $key_id = '....'; $rsa_private_key = file_get_contents('private.pem'); $iam = new ServiceAccountIAMToken($service_account_id, $key_id, $rsa_private_key); //$jwt = $iam->getJWT(); //JSON Web Token $iam_token = $iam->getIAMToken();