{"id":23387233,"url":"https://github.com/wp-forge/wp-plugin-check","last_synced_at":"2025-06-24T14:38:56.956Z","repository":{"id":57082039,"uuid":"257346124","full_name":"wp-forge/wp-plugin-check","owner":"wp-forge","description":"Check if a WordPress plugin is compatible with the current environment.","archived":false,"fork":false,"pushed_at":"2020-04-21T00:22:47.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:11:10.425Z","etag":null,"topics":["wordpress-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-forge.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}},"created_at":"2020-04-20T16:49:49.000Z","updated_at":"2023-01-17T08:31:35.000Z","dependencies_parsed_at":"2022-08-24T14:42:34.368Z","dependency_job_id":null,"html_url":"https://github.com/wp-forge/wp-plugin-check","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-forge%2Fwp-plugin-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-forge%2Fwp-plugin-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-forge%2Fwp-plugin-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-forge%2Fwp-plugin-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-forge","download_url":"https://codeload.github.com/wp-forge/wp-plugin-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248192114,"owners_count":21062628,"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":["wordpress-library"],"created_at":"2024-12-22T01:15:21.081Z","updated_at":"2025-04-11T05:09:15.201Z","avatar_url":"https://github.com/wp-forge.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Plugin Check\n\nCheck if a WordPress plugin is compatible with the current environment. If not, it will automatically deactivate the plugin and show a message to the user letting them know what they can do about it.\n\n__Note:__ Only supports checking PHP 5.2+.\n\n## Installation\n\n```bash\ncomposer require wp-forge/wp-plugin-check\n```\n\n## Usage\n\nThis is how the code should be used:\n\n```php\n\u003c?php\n\n// Plugin headers go here...\n\nrequire dirname( __FILE__ ) . '/vendor/autoload.php';\n\n// Check plugin requirements\nglobal $pagenow;\nif ( 'plugins.php' === $pagenow ) {\n\t$plugin_check = new WP_Forge_Plugin_Check( __FILE__ );\n\n\t$plugin_check-\u003emin_php_version    = '5.6';\n\t$plugin_check-\u003emin_wp_version     = '5.0';\n\t$plugin_check-\u003ereq_php_extensions = array( 'json', 'SimpleXML' );\n\t\n\t$plugin_check-\u003echeck_plugin_requirements();\n}\n\nrequire dirname( __FILE__ ) . '/includes/bootstrap.php';\n```\n\nAlter the WordPress version, PHP version, and required PHP extensions as needed.\n\n__Important:__ _Don't load any other code in your main plugin file!_ PHP parses all code in a file before running it, so incompatible PHP code added after this check will negate the ability to properly perform compatibility checks. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-forge%2Fwp-plugin-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-forge%2Fwp-plugin-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-forge%2Fwp-plugin-check/lists"}