{"id":18879495,"url":"https://github.com/wp-phpunit/example-plugin","last_synced_at":"2025-06-21T15:08:10.608Z","repository":{"id":45082319,"uuid":"113749765","full_name":"wp-phpunit/example-plugin","owner":"wp-phpunit","description":"A complete example for using WP PHPUnit in the context of plugin development.","archived":false,"fork":false,"pushed_at":"2022-09-06T23:06:14.000Z","size":45,"stargazers_count":14,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T15:08:02.174Z","etag":null,"topics":["phpunit","wordpress","wordpress-development","wordpress-plugin","wordpress-tests","wp-phpunit"],"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/wp-phpunit.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":"2017-12-10T12:53:50.000Z","updated_at":"2024-08-01T00:01:46.000Z","dependencies_parsed_at":"2023-01-17T22:00:37.103Z","dependency_job_id":null,"html_url":"https://github.com/wp-phpunit/example-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wp-phpunit/example-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-phpunit%2Fexample-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-phpunit%2Fexample-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-phpunit%2Fexample-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-phpunit%2Fexample-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-phpunit","download_url":"https://codeload.github.com/wp-phpunit/example-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-phpunit%2Fexample-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261143151,"owners_count":23115675,"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":["phpunit","wordpress","wordpress-development","wordpress-plugin","wordpress-tests","wp-phpunit"],"created_at":"2024-11-08T06:36:49.551Z","updated_at":"2025-06-21T15:08:05.593Z","avatar_url":"https://github.com/wp-phpunit.png","language":"PHP","readme":"# Example Plugin\n\n[![Build Status](https://app.travis-ci.com/wp-phpunit/example-plugin.svg?branch=master)](https://app.travis-ci.com/wp-phpunit/example-plugin)\n\nA complete example for using WP PHPUnit in the context of plugin development.\n\n## Features\n\n**Travis CI Configuration**\n\nA ready to use `.travis.yml` configured with a reasonable test matrix\n- Includes all currently supported versions of PHP (7.4 and 8.0) and the current WP minimum required PHP 5.6\n- Tests against the latest version of WordPress, as well as an older version (4.9) although it could be easily extended to include multiple older versions, multisite, etc.\n\n**Just Add Tests**\n\nThis project includes a working example `test-example.php` test case. Adding tests is as simple as adding methods to this example class! Getting up and running couldn't be easier.\n\n## Local Development\n\nInstall Composer dependencies\n\n```sh\n$ composer install\n```\n\nCreate a database for your tests to use and update your `tests/wp-config.php` as necessary.\n\n```sh\n$ mysqladmin create wp_phpunit_tests -u root\n```\n\nThe database name defaults to `wp_phpunit_tests`, but you can change this in the `tests/wp-config.php` without affecting the Travis configuration which is environment variable-based.\n\nRun the tests\n\n```sh\n$ composer test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-phpunit%2Fexample-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-phpunit%2Fexample-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-phpunit%2Fexample-plugin/lists"}