{"id":13518750,"url":"https://github.com/run-as-root/Magento-2-Dependency-Checker","last_synced_at":"2025-03-31T11:30:24.501Z","repository":{"id":41875773,"uuid":"483180240","full_name":"run-as-root/Magento-2-Dependency-Checker","owner":"run-as-root","description":"A small CLI tool to check missing dependency declarations in the composer.json and module.xml","archived":false,"fork":false,"pushed_at":"2023-02-16T09:41:15.000Z","size":568,"stargazers_count":33,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T05:54:33.330Z","etag":null,"topics":["composer","magento","magento-2"],"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/run-as-root.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-19T09:28:45.000Z","updated_at":"2025-03-23T00:14:02.000Z","dependencies_parsed_at":"2024-11-02T00:41:00.597Z","dependency_job_id":null,"html_url":"https://github.com/run-as-root/Magento-2-Dependency-Checker","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.6,"last_synced_commit":"fe4aabf28aaaf2f7dd1ccaea4b26ffed8546e0fc"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-as-root%2FMagento-2-Dependency-Checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-as-root%2FMagento-2-Dependency-Checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-as-root%2FMagento-2-Dependency-Checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/run-as-root%2FMagento-2-Dependency-Checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/run-as-root","download_url":"https://codeload.github.com/run-as-root/Magento-2-Dependency-Checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246461349,"owners_count":20781313,"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":["composer","magento","magento-2"],"created_at":"2024-08-01T05:01:48.525Z","updated_at":"2025-03-31T11:30:24.078Z","avatar_url":"https://github.com/run-as-root.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"## Integrity checker\n\nPackage allows to run static analysis on Magento 2 Module Packages to provide an integrity check of package.\n\n### Supported tools: ###\n\n- **Composer.json package dependencies checker** - check *.xml, *.js, *.php and *.phtml on a subject if other packages used inside\n  and check if corresponding module/package is declared as required in composer.json.\n- **Module.xml dependencies checker** - analyse if packages' etc/module.xml file contains in 'sequence' section all\n  Magento 2 modules which classes are used in *.xml, *.js, *.php and *.phtml files of the package.\n- **Package structure checker** - verify if all newly added Magento 2 modules has a proper structure with all required\n  files.\n\n### Standalone Installation ###\n1. Add your access token to auth.json (see [how to create access token](https://medium.com/@sirajul.anik/install-composer-packages-from-private-repository-from-gitlab-b43597c409c0)).\n```bash\ncomposer config --global --auth gitlab-token.gitlab.com {ACCESS_TOKEN}\n```\n2. Install project from gitlab repository\n```bash\ncomposer create-project run_as_root/integrity-checker --repository-url=\"{\\\"type\\\": \\\"vcs\\\", \\\"url\\\": \\\"git@gitlab.com:oleksandr.kravchuk1/integrity-checker.git\\\"}\" -s dev integrity-checker dev-development --remove-vcs\n```\n\n### Package Installation ###\n1. Add Gitlab repository to list of available repositories for your project composer.json\n```bash\ncomposer config repositories.integrity-checker '{\"type\": \"vcs\", \"url\": \"git@gitlab.com:oleksandr.kravchuk1/integrity-checker.git\"}'\n```\n2. Add your access token to auth.json (see [how to create access token](https://medium.com/@sirajul.anik/install-composer-packages-from-private-repository-from-gitlab-b43597c409c0)).\n```bash\ncomposer config --global --auth gitlab-token.gitlab.com {ACCESS_TOKEN}\n```\n3. Change packages minimum stability to `dev` (required during development only.\n```bash\ncomposer config minimum-stability dev \n```\n4. Install package via composer\n```bash\ncomposer require --dev run_as_root/integrity-checker dev-development\n```\n\n### Usage ###\n\n#### Dependencies Checker ####\n\n```bash\nbin/dependencies {magento root} {folder} {folder2} {folder3}\n```\n\n{magento root} - path to Magento 2 project root directory.\nTool require composer.lock to be defined.\nAll packages inside {folder}'s will be recognized by composer.json file. {folder} - expected to be relative inside the\nmagento root folder. Dependencies check will be run for composer.json and etc/module.xml together.\n\n#### Module Structure Checker ####\n\n```bash\nbin/structure {magento root} {folder} {folder2} {folder3}\n```\n\n{magento root} - path to Magento 2 project root directory.\nTool collects all packages in {folder} by registration.php files. For each module it compares\ncurrent structure with Standard structure and print diff, if Standard structure was not followed.\n\nStandard package structure:\n\n```bash\ndocs\nsrc\n  etc\n    module.xml\nREADME.md\ncomposer.json\nregistration.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frun-as-root%2FMagento-2-Dependency-Checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frun-as-root%2FMagento-2-Dependency-Checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frun-as-root%2FMagento-2-Dependency-Checker/lists"}