{"id":20447048,"url":"https://github.com/socialconnect/jwx","last_synced_at":"2025-07-08T20:09:36.295Z","repository":{"id":45050349,"uuid":"197039519","full_name":"SocialConnect/jwx","owner":"SocialConnect","description":"⚠️ PHP library for JSON web tokens (JWT) and JWT and etc","archived":false,"fork":false,"pushed_at":"2023-08-16T14:09:47.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T03:24:20.640Z","etag":null,"topics":["jwt","jwt-token","jwx"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SocialConnect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-07-15T17:00:02.000Z","updated_at":"2022-01-09T16:12:01.000Z","dependencies_parsed_at":"2022-09-22T16:41:08.426Z","dependency_job_id":null,"html_url":"https://github.com/SocialConnect/jwx","commit_stats":{"total_commits":48,"total_committers":5,"mean_commits":9.6,"dds":"0.14583333333333337","last_synced_commit":"5eaf255906cc78d02e33732a688ac0cf35cdf581"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fjwx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fjwx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fjwx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialConnect%2Fjwx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SocialConnect","download_url":"https://codeload.github.com/SocialConnect/jwx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253135759,"owners_count":21859687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jwt","jwt-token","jwx"],"created_at":"2024-11-15T10:24:19.188Z","updated_at":"2025-05-08T19:36:28.323Z","avatar_url":"https://github.com/SocialConnect.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"JWX\n===\n\n[![Packagist](https://img.shields.io/packagist/v/socialconnect/jwx.svg?style=flat-square)](https://packagist.org/packages/socialconnect/jwx)\n[![License](http://img.shields.io/packagist/l/SocialConnect/jwx.svg?style=flat-square)](https://github.com/SocialConnect/jwx/blob/master/LICENSE)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSocialConnect%2Fjwx.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FSocialConnect%2Fjwx?ref=badge_shield)\n\n## [Documentation](https://socialconnect.lowl.io/jwx.html) :: [Getting Started](https://socialconnect.lowl.io/jwx.html)\n\nImplementation:\n\n- JWT (JSON Web Token) [RFC 7519](https://tools.ietf.org/html/rfc7519)\n- JWK (JSON Web Keys) [RFC 7517](https://tools.ietf.org/html/rfc7517)\n- JWKs (JSON Web Key Set) [RFC 7517](https://tools.ietf.org/html/rfc7517#section-8.4)\n\n## Encode\n\n```php\n\u003c?php\n\n$jwt = new \\SocialConnect\\JWX\\JWT([\n    'uid' =\u003e 5,\n]);\n\n$encodeOptions = new \\SocialConnect\\JWX\\EncodeOptions();\n$encodeOptions-\u003esetExpirationTime(600);\n\n$token = $jwt-\u003eencode('TEST', 'HS256', $encodeOptions);\nvar_dump($token);\n```\n\n## Decode\n\n```php\n\u003c?php\n\n$decodeOptions = new \\SocialConnect\\JWX\\DecodeOptions(['HS256']);\n$token = \\SocialConnect\\JWX\\JWT::decode('TEST', $token, $decodeOptions);\n\nvar_dump($token);\n```\n\n### License\n\nThis project is open-sourced software licensed under the MIT License.\n\nSee the [LICENSE](LICENSE) file for more information.\n\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FSocialConnect%2Fjwx.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FSocialConnect%2Fjwx?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialconnect%2Fjwx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialconnect%2Fjwx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialconnect%2Fjwx/lists"}