{"id":37015074,"url":"https://github.com/bim-g/web_token","last_synced_at":"2026-01-14T01:30:32.602Z","repository":{"id":46355269,"uuid":"410807461","full_name":"bim-g/web_token","owner":"bim-g","description":"simple module to help generate a simple token using php ","archived":false,"fork":false,"pushed_at":"2021-10-22T09:11:12.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-13T07:51:42.652Z","etag":null,"topics":["authentication","jwt","php","token","tokenization","wepesi"],"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/bim-g.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}},"created_at":"2021-09-27T08:43:56.000Z","updated_at":"2022-07-03T22:01:35.000Z","dependencies_parsed_at":"2022-07-19T22:18:18.805Z","dependency_job_id":null,"html_url":"https://github.com/bim-g/web_token","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bim-g/web_token","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bim-g%2Fweb_token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bim-g%2Fweb_token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bim-g%2Fweb_token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bim-g%2Fweb_token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bim-g","download_url":"https://codeload.github.com/bim-g/web_token/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bim-g%2Fweb_token/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["authentication","jwt","php","token","tokenization","wepesi"],"created_at":"2026-01-14T01:30:31.886Z","updated_at":"2026-01-14T01:30:32.592Z","avatar_url":"https://github.com/bim-g.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web_token\nsimple module to help generate a simple token using php \n\n# INTEGRATION\ncreate a new instance of the class `JWT`, that will help you generate a new token, or validate an existing token.\n```php\n    $data=[\n        \"data\"=\u003e\"hello Github\",\n        \"expired\"=\u003e300\n    ];\n    $tken= new JWT;\n    $_token=$tken-\u003egenerate($data)\n    echo $_token;\n```\nthe class Token has 2 Method:\n * generate:\n use this method to generate a new token key.\n it take 2 params.\n - the first parameter is an array of information according to the data to be encoded.\n it has 2 key : \n 1: `data`: where you can store all your information you want to be enconded;\n 2: `expired`:(iptional) how long your token will be used; the value in second, and it optional, by default the token propose `3600 second`.\n\n - the second parameter (optional) is `cypherkye` to encode your data, by default the token generate a cypherkey for the token key.\n\n * decode\n use this method to valid your token, and restore the encoded the data, and it take 2 parameters.\n \n - the first parameter is your token string generated with is devide in 3 parts:\nthe `encryption_iv`,the `encoded_data`,the `cypherkye`.\n```php\n    $tken = new JWT();\n    $token = \"4edc3e02a3ccf20c213131efa271b79b.vJjR1CIHHdfiCj4Tt+weTtnAZ7PVQw7e1eeQtdT3/qWY43pZH91r9mO92UhXrJB2NGoSv10j.c2f8ab9f30e19e14d47a6491ca77fe36\";\n\n    $dec = $tken-\u003edecode($token);\n    var_dump($dec);\n```\n - the second parameter (optional) is `cypherkye` to encode your data, by default the token generate a cypherkey for the token key.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbim-g%2Fweb_token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbim-g%2Fweb_token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbim-g%2Fweb_token/lists"}