{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/php-jwt/","markdown":"https://findsoftware.frbit.cloud/php-jwt.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"php-jwt","name":"PHP-JWT","urls":{"repository":"https://github.com/googleapis/php-jwt","docs":"https://docs.cloud.google.com/php/docs/reference/php-jwt/latest"},"category":["auth"],"description":"PHP library that encodes and decodes JSON Web Tokens (JWT) conforming to RFC 7519.","maintainer":"Neuman Vong","firstRelease":2014,"hosting":["php"],"language":"php","runtime":["php"],"runtimeMin":"php 8.0","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"renderingModes":null,"installMethod":"composer","licenseModel":"open-source","license":"BSD-3-Clause","currentMajor":"7","latestReleaseDate":"2026-09-28T00:00:00.000Z","githubStargazers":9803,"contributors":83,"packagistDownloads":551868364,"npmWeeklyDownloads":null,"dependentRepos":44890,"dependentPackages":1772,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/googleapis/php-jwt","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://docs.cloud.google.com/php/docs/reference/php-jwt/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/googleapis/php-jwt/blob/main/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://repo.packagist.org/p2/firebase/php-jwt.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://github.com/googleapis/php-jwt/blob/main/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/googleapis/php-jwt","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/googleapis/php-jwt/blob/v7.2.1/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://github.com/googleapis/php-jwt/blob/v7.2.1/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/googleapis/php-jwt/blob/main/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://github.com/googleapis/php-jwt/blob/v7.2.1/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/googleapis/php-jwt/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/googleapis/php-jwt/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/googleapis/php-jwt","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/googleapis/php-jwt/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"packagistDownloads","url":"https://packagist.org/packages/firebase/php-jwt.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/firebase%2Fphp-jwt","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/firebase%2Fphp-jwt","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"PHP-JWT encodes and decodes JSON Web Tokens in PHP. Encoding signs a payload with a key and an algorithm. Decoding takes a key object that names the algorithm the application expects, verifies the signature and the time claims, and returns the payload as a stdClass object. Keys can come from PEM strings, from a JSON Web Key Set, or from a cached key set that fetches the set from a URL and refreshes the cache when a key ID is unknown.\n\nDecoding throws a different exception for an invalid key, an unsupported algorithm, a bad signature, a token used too early or too late, and a malformed token.\n\n## Worth knowing\n\nThe README says the application must name the algorithms it accepts, and that decoding header values before verifying the token is not supported. The EdDSA examples use libsodium. PS256 needs phpseclib installed separately, because the OpenSSL extension does not support it."}