{"id":20134380,"url":"https://github.com/wearerequired/wp-requirements-check","last_synced_at":"2025-10-19T13:47:33.149Z","repository":{"id":62547220,"uuid":"57754290","full_name":"wearerequired/wp-requirements-check","owner":"wearerequired","description":"Simple drop-in library for WordPress plugins to check for PHP and WordPress version requirements","archived":false,"fork":false,"pushed_at":"2019-03-11T11:17:46.000Z","size":21,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T17:15:28.562Z","etag":null,"topics":["wordpress","wordpress-plugin"],"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/wearerequired.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-05-01T19:09:42.000Z","updated_at":"2024-09-29T17:45:55.000Z","dependencies_parsed_at":"2022-11-02T22:15:32.515Z","dependency_job_id":null,"html_url":"https://github.com/wearerequired/wp-requirements-check","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Fwp-requirements-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Fwp-requirements-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Fwp-requirements-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wearerequired%2Fwp-requirements-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wearerequired","download_url":"https://codeload.github.com/wearerequired/wp-requirements-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074922,"owners_count":21043490,"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","wordpress-plugin"],"created_at":"2024-11-13T21:09:22.621Z","updated_at":"2025-10-19T13:47:28.110Z","avatar_url":"https://github.com/wearerequired.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Requirements Check\n\nSimple drop-in class to check minimum PHP and WordPress version requirements in your plugin.\n\n## Usage\n\n1. Run `composer require wearerequired/wp-requirements-check`\n2. In your main plugin file, instantiate the class using something like this:\n\n```php\n$requirements_check = new WP_Requirements_Check( array(\n\t'title' =\u003e 'My awesome plugin',\n\t'php'   =\u003e '7.0',\n\t'wp'    =\u003e '4.7',\n\t'file'  =\u003e __FILE__,\n\t'i18n'  =\u003e array(\n\t\t/* translators: 1: plugin name. 2: minimum PHP version. */\n\t\t'php' =\u003e __( '\u0026#8220;%1$s\u0026#8221; requires PHP %2$s or higher. Please upgrade.', 'my-plugin' ),\n\t\t/* translators: 1: plugin name. 2: minimum WordPress version. */\n\t\t'wp'  =\u003e __( '\u0026#8220;%1$s\u0026#8221; requires WordPress %2$s or higher. Please upgrade.', 'my-plugin' ),\n\t),\n) );\n\nif ( $requirements_check-\u003epasses() ) {\n\t// Proceed.\n}\n```\n\n## Credits\n\nThanks to Mark Jaquith for his [grunt-wp-plugin](https://github.com/markjaquith/grunt-wp-plugin) template which contains similar code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearerequired%2Fwp-requirements-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwearerequired%2Fwp-requirements-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwearerequired%2Fwp-requirements-check/lists"}