{"id":16173369,"url":"https://github.com/rarst/wporg-client","last_synced_at":"2025-03-16T10:31:01.715Z","repository":{"id":25100960,"uuid":"28522096","full_name":"Rarst/wporg-client","owner":"Rarst","description":"Standalone HTTP client for public WordPress.org API.","archived":false,"fork":false,"pushed_at":"2022-06-28T06:48:07.000Z","size":42,"stargazers_count":72,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-17T08:50:37.367Z","etag":null,"topics":["api-client","wordpress"],"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/Rarst.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-26T21:52:31.000Z","updated_at":"2024-08-28T17:44:50.000Z","dependencies_parsed_at":"2022-09-09T19:10:56.139Z","dependency_job_id":null,"html_url":"https://github.com/Rarst/wporg-client","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwporg-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwporg-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwporg-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rarst%2Fwporg-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rarst","download_url":"https://codeload.github.com/Rarst/wporg-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221662701,"owners_count":16859733,"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":["api-client","wordpress"],"created_at":"2024-10-10T04:08:32.205Z","updated_at":"2024-10-27T10:25:16.070Z","avatar_url":"https://github.com/Rarst.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPorg Client\n\n[![Current version](https://img.shields.io/packagist/v/rarst/wporg-client?label=version)](CHANGELOG.md)\n[![PHP required](https://img.shields.io/packagist/php-v/rarst/wporg-client)](composer.json)\n\nWPorg Client is a standalone HTTP client for public [WordPress.org API](http://codex.wordpress.org/WordPress.org_API).\n\nIt aims to provide consistent centralized experience and is independent from WordPress core.\n\n## Installation\n\n```bash\ncomposer require rarst/wporg-client\n```\n\n```php\n$wporgClient  = \\Rarst\\Guzzle\\WporgClient::getClient();\n```\n\n## Examples\n\n### Core\n\n```php\n$updates      = $wporgClient-\u003egetUpdates();\n$updatesFor   = $wporgClient-\u003egetUpdates('4.0', 'en_US');\n$translations = $wporgClient-\u003egetTranslations('4.1');\n$credits      = $wporgClient-\u003egetCredits('4.1');\n$checksums    = $wporgClient-\u003egetChecksums('4.1', 'en_US');\n```\n\n### Themes\n\n```php\n$theme        = $wporgClient-\u003egetTheme('twentyfifteen');\n$translations = $wporgClient-\u003egetThemeTranslations('twentyfifteen', '1.0');\n\n$popular      = $wporgClient-\u003egetThemesBy('browse', 'popular');\n$featured     = $wporgClient-\u003egetThemesBy('browse', 'featured');\n$new          = $wporgClient-\u003egetThemesBy('browse', 'new');\n$updated      = $wporgClient-\u003egetThemesBy('browse', 'updated');\n$search       = $wporgClient-\u003egetThemesBy('search', 'twenty');\n$tagged       = $wporgClient-\u003egetThemesBy('tag', 'white');\n$authors      = $wporgClient-\u003egetThemesBy('author', 'wordpressdotorg');\n\n$featureList  = $wporgClient-\u003egetThemeFeatureList();\n```\n\n### Plugins\n\n```php\n$plugin       = $wporgClient-\u003egetPlugin('hello-dolly');\n$stats        = $wporgClient-\u003egetPluginStats('hello-dolly');\n$downloads    = $wporgClient-\u003egetPluginDownloads('hello-dolly', 7);\n$translations = $wporgClient-\u003egetPluginTranslations('akismet', '3.0');\n\n$popular      = $wporgClient-\u003egetPluginsBy('browse', 'popular');\n$featured     = $wporgClient-\u003egetPluginsBy('browse', 'featured');\n$new          = $wporgClient-\u003egetPluginsBy('browse', 'new');\n$updated      = $wporgClient-\u003egetPluginsBy('browse', 'updated');\n$search       = $wporgClient-\u003egetPluginsBy('search', 'dolly');\n$tagged       = $wporgClient-\u003egetPluginsBy('tag', 'widget');\n$authors      = $wporgClient-\u003egetPluginsBy('author', 'wordpressdotorg');\n\n$importers    = $wporgClient-\u003egetImporters();\n$tags         = $wporgClient-\u003egetHotTags();\n```\n\n### Events\n\n```php\n$location     = $wporgClient-\u003egetEvents(['location' =\u003e 'Seattle']));\n$number       = $wporgClient-\u003egetEvents(['location' =\u003e 'Australia', 'number' =\u003e 5]));\n$locale       = $wporgClient-\u003egetEvents(['timezone' =\u003e 'Europe/Berlin', 'locale' =\u003e 'de_DE', 'location' =\u003e 'Dresden']));\n$coordinates  = $wporgClient-\u003egetEvents(['latitude' =\u003e '51.051', 'longitude' =\u003e '13.738']));\n$ip           = $wporgClient-\u003egetEvents(['ip' =\u003e '136.0.16.1']));\n$country      = $wporgClient-\u003egetEvents(['country' =\u003e 'IT']));\n```\n\n### Other\n\n#### Stats\n\n```php\n$wordpress    = $wporgClient-\u003egetStats('wordpress');\n$php          = $wporgClient-\u003egetStats('php');\n$mysql        = $wporgClient-\u003egetStats('mysql');\n```\n\n#### Secret keys \u0026 salts\n\n```php\n$secret       = $wporgClient-\u003egetSalt();\n```\n\n#### Browse happy\n\n```php\n$browser      = $wporgClient-\u003egetBrowser('Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.17');\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarst%2Fwporg-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frarst%2Fwporg-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarst%2Fwporg-client/lists"}