{"id":24381982,"url":"https://github.com/bernskiold/wp-dependency-checker","last_synced_at":"2026-04-24T11:35:48.789Z","repository":{"id":62493424,"uuid":"258460406","full_name":"bernskiold/WP-Dependency-Checker","owner":"bernskiold","description":"A modern way of checking for other plugin dependencies for your WordPress plugin.","archived":false,"fork":false,"pushed_at":"2021-05-30T14:27:34.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-17T06:32:56.962Z","etag":null,"topics":["dependency-manager","trait","wordpress","wordpress-helpers"],"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/bernskiold.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-04-24T09:02:00.000Z","updated_at":"2021-05-30T14:27:18.000Z","dependencies_parsed_at":"2022-11-02T11:31:14.998Z","dependency_job_id":null,"html_url":"https://github.com/bernskiold/WP-Dependency-Checker","commit_stats":null,"previous_names":["bernskiold/wp-dependency-checker","bernskioldmedia/wp-dependency-checker"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bernskiold/WP-Dependency-Checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernskiold%2FWP-Dependency-Checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernskiold%2FWP-Dependency-Checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernskiold%2FWP-Dependency-Checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernskiold%2FWP-Dependency-Checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bernskiold","download_url":"https://codeload.github.com/bernskiold/WP-Dependency-Checker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bernskiold%2FWP-Dependency-Checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32221842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dependency-manager","trait","wordpress","wordpress-helpers"],"created_at":"2025-01-19T09:14:47.373Z","updated_at":"2026-04-24T11:35:48.770Z","avatar_url":"https://github.com/bernskiold.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Dependency Checker\nThis is a simple library for a WordPress plugin that check for plugin dependencies.\n\nOften when we do private projects we may require one or more plugins to be active. It just\nisn't sensible for us to make everything work without. This saves time and money for us and our clients.a\n\nWhen we do, we find ourselves in need of checking dependencies. This library helps you add it to your plugin in a\nmodern PHP fashion using traits.\n\nIf dependencies are not found you can handle them and an admin notice is shown.\n\n## Getting started\nAll you need to do is include the `Has_Dependencies` trait in the plugin class where you want to\ncheck your dependencies. Ideally before you execute any code.\n\nThen specificy a list of plugin dependencies in the `$dependencies` class variable.\n\n```\nuse BernskioldMedia\\WP\\WP_Dependency_Checker\\Traits\\Has_Dependencies;\n\nclass My_Plugin {\n\n    use Has_Dependencies;\n\n    protected static $dependencies = [\n        'My Dependency' =\u003e 'folder/main-file.php',\n    ];\n\n}\n```\n\nWhen you need to check for your dependencies, you then run an if:\n\n```\nif(self::has_dependencies()) {\n    // Run my code\n}\n```\n\nThe `has_dependencies` function will automatically show an admin notice if falsy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernskiold%2Fwp-dependency-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernskiold%2Fwp-dependency-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernskiold%2Fwp-dependency-checker/lists"}