{"id":16776923,"url":"https://github.com/adampatterson/wpoauth","last_synced_at":"2026-05-17T03:10:55.045Z","repository":{"id":56940485,"uuid":"358032680","full_name":"adampatterson/WpOAuth","owner":"adampatterson","description":"wpOAuth is a package meant to help with the integration of API services into plugins or themes.","archived":false,"fork":false,"pushed_at":"2026-04-29T17:15:16.000Z","size":66,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-15T14:07:47.559Z","etag":null,"topics":["php","wordpress"],"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/adampatterson.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":"2021-04-14T20:22:17.000Z","updated_at":"2026-04-29T17:15:23.000Z","dependencies_parsed_at":"2024-11-22T18:38:52.459Z","dependency_job_id":"a5d23da0-72a8-4007-940b-0b95d0733eda","html_url":"https://github.com/adampatterson/WpOAuth","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"d466d0babed74ff3774ba0e0350108f4abf66a51"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/adampatterson/WpOAuth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampatterson%2FWpOAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampatterson%2FWpOAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampatterson%2FWpOAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampatterson%2FWpOAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adampatterson","download_url":"https://codeload.github.com/adampatterson/WpOAuth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampatterson%2FWpOAuth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33126090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"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":["php","wordpress"],"created_at":"2024-10-13T07:11:21.224Z","updated_at":"2026-05-17T03:10:55.041Z","avatar_url":"https://github.com/adampatterson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress oAuth PHP\n\n![PHP Composer](https://github.com/adampatterson/wpoauth/workflows/PHP%20Composer/badge.svg?branch=main)\n\nA simple oAuth client meant for personal projects\n\n\u003e [!NOTE]\n\u003e This script is still under development.\n\n## Install from [Packagist](https://packagist.org/packages/adampatterson/wpoauth)\n\n```bash\ncomposer require adampatterson/wpoauth\n```\n\n## Basic Usage\n\n```php\n$wpOAuthParams = [\n    \"authUrl\"            =\u003e \"https://auth.com/connect/authorize\",\n    \"tokenUrl\"           =\u003e \"https://auth.com/connect/token\",\n    \"clientRedirect\"     =\u003e \"https://site.com/?callback=wpoauth\",\n    \"clientId\"           =\u003e CLIENT_ID,\n    \"clientSecret\"       =\u003e CLIENT_SECRET,\n    \"scope\"              =\u003e \"read offline_access\",\n    \"response_type\"      =\u003e \"code\",\n    \"expires_in\"         =\u003e HOUR_IN_SECONDS - 1,\n    \"refresh_expires_in\" =\u003e (WEEK_IN_SECONDS * 2) - 1,\n    \"transient_prefix\"   =\u003e 'change_me'\n    \"should_log\"         =\u003e true,\n    \"log_path\"           =\u003e __DIR__.'/_log.php',\n];\n\n$this-\u003ewpOAuth = new WpOAuth($wpOAuthParams);\n```\n\n## Tests\n\n```bash\ncomposer install\ncomposer test\n```\n\n## Local Dev\n\nRun from the theme root.\n\n```bash\nln -s ~/Sites/packages/WpOAuth ./vendor/adampatterson/wpoauth\n```\n\nI'd reccomend using the [WordPress Transients Manager](https://wordpress.org/plugins/transients-manager/) plugin so you can monitor, and invalidate the token storage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadampatterson%2Fwpoauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadampatterson%2Fwpoauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadampatterson%2Fwpoauth/lists"}