{"id":20760542,"url":"https://github.com/bigwing/pet-and-go-wp","last_synced_at":"2026-05-19T02:01:29.365Z","repository":{"id":62494133,"uuid":"290051712","full_name":"bigwing/pet-and-go-wp","owner":"bigwing","description":"PHP library for interacting with the PetAndGo.com API within the context of WordPress.","archived":false,"fork":false,"pushed_at":"2020-09-15T17:29:56.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T22:38:49.750Z","etag":null,"topics":["api-client","php-library","wordpress"],"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/bigwing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-24T22:16:30.000Z","updated_at":"2020-11-18T23:22:57.000Z","dependencies_parsed_at":"2022-11-02T09:31:59.025Z","dependency_job_id":null,"html_url":"https://github.com/bigwing/pet-and-go-wp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bigwing/pet-and-go-wp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fpet-and-go-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fpet-and-go-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fpet-and-go-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fpet-and-go-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigwing","download_url":"https://codeload.github.com/bigwing/pet-and-go-wp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigwing%2Fpet-and-go-wp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266715652,"owners_count":23973344,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["api-client","php-library","wordpress"],"created_at":"2024-11-17T10:14:12.956Z","updated_at":"2026-05-19T02:01:24.343Z","avatar_url":"https://github.com/bigwing.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PetAndGo WP\nPHP library for interacting with the PetAndGo.com API within a WordPress site.\n\n[![PDS Skeleton](https://img.shields.io/badge/pds-skeleton-blue.svg?style=flat-square)](https://github.com/php-pds/skeleton)\n[![GitHub license](https://img.shields.io/github/license/bigwing/pet-and-go-wp)](https://github.com/bigwing/pet-and-go-wp/blob/master/LICENSE)\n\n## Installation\nInstall using Composer `composer require bigwing/pet-and-go-wp` and use the Composer autoloader.\n\n## Configuration\nThe only required setting is your PetAndGo API key (`authkey`), which must be passed to the class on instantiation.\nCommon ways to do this:\n- In `wp-config.php`, set a constant with `define( 'PET_AND_GO_AUTHKEY', 'your_auth_key' );`.\n- Use dotEnv to set the key.\n- Create a WP settings page and store the key there.\n\n## Usage\nYou can use this inside a theme or plugin, but this package DOES NOT dictate front-end output.\n\n- Use the Composer autoloader to ensure the files are loaded.\n- Instantiate the class with `new PetAndGo\\PetAndGo( PET_AND_GO_AUTHKEY );`.\n\nNote: You may choose to assign it to a variable if you're going to use it right away,\nbut you can also create the class in your main `functions.php` file and use\n`PetAndGo::get_instance();` in any templates to get the main instance.\n\n### Getting pets list:\nYou can pass a species name to `get_adoptable_pets()` for a specific pet type. Currently, only \"cat\", \"dog\", or \"all\"\nare supported.\n\n```php\n$pet_search = BigWing\\PetAndGo\\PetAndGo::get_instance();\n$pets = $pet_search-\u003eget_adoptable_pets( 'dog' );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigwing%2Fpet-and-go-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigwing%2Fpet-and-go-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigwing%2Fpet-and-go-wp/lists"}