{"id":26529224,"url":"https://github.com/phpnexus/oauth2-freee","last_synced_at":"2026-04-19T05:37:04.130Z","repository":{"id":220906912,"uuid":"752893931","full_name":"phpnexus/oauth2-freee","owner":"phpnexus","description":"Freee OAuth 2.0 support for the PHP League's OAuth 2.0 Client","archived":false,"fork":false,"pushed_at":"2024-02-06T09:54:48.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T16:53:29.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/phpnexus.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-05T03:40:26.000Z","updated_at":"2024-02-19T03:55:27.000Z","dependencies_parsed_at":"2024-02-05T05:06:11.731Z","dependency_job_id":"ff8ee7ed-417d-4ead-8782-3d4f7c264f62","html_url":"https://github.com/phpnexus/oauth2-freee","commit_stats":null,"previous_names":["phpnexus/oauth2-freee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phpnexus/oauth2-freee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Foauth2-freee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Foauth2-freee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Foauth2-freee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Foauth2-freee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpnexus","download_url":"https://codeload.github.com/phpnexus/oauth2-freee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpnexus%2Foauth2-freee/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268470797,"owners_count":24255391,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-21T16:29:18.177Z","updated_at":"2026-04-19T05:37:04.093Z","avatar_url":"https://github.com/phpnexus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Freee Provider for OAuth 2.0 Client\n\n[![Actions Status](https://github.com/phpnexus/oauth2-freee/workflows/Pipeline/badge.svg)](https://github.com/phpnexus/oauth2-freee/actions)\n[![Coverage Status](https://img.shields.io/coveralls/phpnexus/oauth2-freee/main.svg)](https://coveralls.io/github/phpnexus/oauth2-freee?branch=main)\n[![License](https://img.shields.io/packagist/l/phpnexus/oauth2-freee.svg)](https://github.com/phpnexus/oauth2-freee/blob/main/LICENSE)\n[![Version](https://img.shields.io/packagist/v/phpnexus/oauth2-freee.svg)](https://packagist.org/packages/phpnexus/oauth2-freee)\n[![Downloads](https://img.shields.io/packagist/dt/phpnexus/oauth2-freee.svg)](https://packagist.org/packages/phpnexus/oauth2-freee/stats)\n\nThis package provides Freee OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).\n\n## Installation\n\nTo install, use composer:\n\n```\ncomposer require phpnexus/oauth2-freee\n```\n\n## Usage\n\nUsage is the same as The League's OAuth client, using `\\PhpNexus\\OAuth2\\Client\\Provider\\Freee` as the provider.\n\n### Authorization Code Flow\n\n```php\n$provider = new PhpNexus\\OAuth2\\Client\\Provider\\Freee([\n    'clientId'          =\u003e '{freee-app-client-id}',\n    'clientSecret'      =\u003e '{freee-app-client-secret}',\n    'redirectUri'       =\u003e 'https://example.com/redirect-url'\n]);\n```\n\nFor further usage of this package please refer to the [core package documentation on \"Authorization Code Grant\"](https://github.com/thephpleague/oauth2-client#usage).\n\n### Refreshing a Token\n\nOnce your application is authorized, you can refresh an expired token using a refresh token rather than going through the entire process of obtaining a brand new token. To do so, simply reuse this refresh token from your data store to request a refresh.\n\n```php\n$existingAccessToken = getAccessTokenFromYourDataStore();\n\nif ($existingAccessToken-\u003ehasExpired()) {\n    $newAccessToken = $provider-\u003egetAccessToken('refresh_token', [\n        'refresh_token' =\u003e $existingAccessToken-\u003egetRefreshToken()\n    ]);\n\n    // Purge old access token and store new access token to your data store.\n}\n```\n\nFor further usage of this package please refer to the [core package documentation on \"Refreshing a Token\"](https://github.com/thephpleague/oauth2-client#refreshing-a-token).\n\n## Testing\n\n``` bash\n$ ./vendor/bin/phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/phpnexus/oauth2-freee/blob/main/CONTRIBUTING.md) for details.\n\n\n## Credits\n\n- [Mark Prosser](https://github.com/markinjapan)\n- [All Contributors](https://github.com/phpnexus/oauth2-freee/contributors)\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](https://github.com/phpnexus/oauth2-freee/blob/main/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpnexus%2Foauth2-freee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpnexus%2Foauth2-freee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpnexus%2Foauth2-freee/lists"}