{"id":86451,"library":"firebase-php-jwt","title":"Firebase PHP-JWT","description":"A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to the current spec.","status":"active","version":"7.1.0","language":"php","source_language":null,"source_url":"https://github.com/googleapis/php-jwt","tags":["jwt","authentication","firebase","php"],"install":[{"cmd":"composer require firebase/php-jwt","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"JWT","correct":"use Firebase\\JWT\\JWT;"}],"quickstart":{"code":"use Firebase\\JWT\\JWT;\n\n$key = 'example_key';\n$payload = ['iss' => 'example.org', 'sub' => '1234567890'];\n$jwt = JWT::encode($payload, $key, 'HS256');\n$decoded = JWT::decode($jwt, new \\Firebase\\JWT\\Key($key, 'HS256'));","lang":"php","description":"Encode and decode a JWT using HMAC-SHA256."},"warnings":[{"fix":"Use new \\Firebase\\JWT\\Key($key, $algorithm) instead of passing key as string.","message":"Version 7.0+ uses Key objects instead of plain strings for decoding.","severity":"breaking","affected_versions":">=7.0"}],"env_vars":null,"search_vec":"'authent':24 'conform':18 'current':21 'decod':11 'encod':9 'firebas':1,25 'json':12 'jwt':4,15,23 'librari':7 'php':3,17,26 'php-jwt':2 'simpl':6 'spec':22 'token':14 'web':13","created_at":"2026-06-19T08:01:51.817908+00:00","updated_at":"2026-06-19T08:01:51.817908+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/googleapis/php-jwt","github":"https://github.com/googleapis/php-jwt","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}