{"id":15025626,"url":"https://github.com/filipefernandes007/jwt-auth","last_synced_at":"2026-03-27T02:33:36.374Z","repository":{"id":81434336,"uuid":"147328975","full_name":"filipefernandes007/jwt-auth","owner":"filipefernandes007","description":"A JWT implementation","archived":false,"fork":false,"pushed_at":"2020-04-20T20:15:14.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T14:45:53.869Z","etag":null,"topics":["jwt","jwt-authentication","jwt-middleware","php71","slim3","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filipefernandes007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-04T10:28:50.000Z","updated_at":"2020-04-20T20:15:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"64fbef0d-f2a0-4e3e-a8ea-9ed4a738dba0","html_url":"https://github.com/filipefernandes007/jwt-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/filipefernandes007/jwt-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fjwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fjwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fjwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fjwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filipefernandes007","download_url":"https://codeload.github.com/filipefernandes007/jwt-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipefernandes007%2Fjwt-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31010273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:33:22.146Z","status":"ssl_error","status_checked_at":"2026-03-27T02:33:21.763Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-authentication","jwt-middleware","php71","slim3","vuejs2"],"created_at":"2024-09-24T20:02:42.505Z","updated_at":"2026-03-27T02:33:36.351Z","avatar_url":"https://github.com/filipefernandes007.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# JWT Auth - _Small example on how to use JWT to interact with your API_ \n\n# Requirements\n\n* PHP 7.1\n* [Sqlite3](https://www.sqlite.org/index.html)\n* [composer - Dependency Manager for PHP](https://getcomposer.org/download/) \n* [ext-pdo-sqlite](http://php.net/manual/en/ref.pdo-sqlite.php)\n\n# Install\n\n```bash\n$ git clone https://github.com/filipefernandes007/jwt-auth.git\n$ cd jwt-auth\n$ composer self-update\n$ composer install\n```\n\n# Run application\n\n```bash\n$ composer start\n```\n\n# Routes\n\nPOST /api/auth : {\"jwt\":\"some valid jwt\"}\n```\ncurl -d '{\"username\":\"filipefernandes007\", \"pwd\":\"123\"}' -H \"Content-Type: application/json\" -X POST http://localhost:8090/api/auth\n```\n\nGET  /api/user/\u003cid\u003e : with \u003cjwt\u003e from /api/auth \n```\ncurl -X GET http://localhost:8090/api/user/1 \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer \u003cjwt\u003e\"\n\ncurl -X GET http://localhost:8090/api/user/1 \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJmaWxpcGVmZXJuYW5kZXMwMDctand0fDEiLCJpc3MiOiJcL2F1dGgiLCJpYXQiOjE1Mzk4NzQ1MjUsImV4cCI6MTUzOTg3ODEyNSwiZGF0YSI6eyJpZCI6MSwidXNlcm5hbWUiOiJmaWxpcGVmZXJuYW5kZXMwMDcifX0.3conBhpJ9eX3mup3tptjpW_OdL70uB-zUEUyF4haaRkfbBAEDNF41jLd6fmd2W_7EqUq6inX5EnELnQtXeqx8g\"\n```\n\nPOST /api/user/change-pwd/\u003cid\u003e :\n```\ncurl -X POST http://localhost:8090/api/user/change-pwd/\u003cid\u003e \\\n-d '{\"pwd\":\"your new password\"}' \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer \u003cjwt\u003e\"\n\ncurl -X POST http://localhost:8090/api/user/change-pwd/1 \\\n-d '{\"pwd\":\"123\"}' \\\n-H \"Content-Type: application/json\" \\\n-H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJmaWxpcGVmZXJuYW5kZXMwMDctand0fDEiLCJpc3MiOiJcL2F1dGgiLCJpYXQiOjE1Mzk4NzQ1MjUsImV4cCI6MTUzOTg3ODEyNSwiZGF0YSI6eyJpZCI6MSwidXNlcm5hbWUiOiJmaWxpcGVmZXJuYW5kZXMwMDcifX0.3conBhpJ9eX3mup3tptjpW_OdL70uB-zUEUyF4haaRkfbBAEDNF41jLd6fmd2W_7EqUq6inX5EnELnQtXeqx8g\"\n```\n\n[Access application here](http://localhost:8090) \n\n# Functional tests\n\nYou can run tests with bash command ``` composer test ```\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipefernandes007%2Fjwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilipefernandes007%2Fjwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipefernandes007%2Fjwt-auth/lists"}