{"id":15659586,"url":"https://github.com/stefanzweifel/laravel-phpinsights-action","last_synced_at":"2025-03-09T23:32:10.044Z","repository":{"id":56822270,"uuid":"191163405","full_name":"stefanzweifel/laravel-phpinsights-action","owner":"stefanzweifel","description":"Run PHP Insights in Laravel in Github Actions","archived":false,"fork":false,"pushed_at":"2020-07-14T05:30:28.000Z","size":11,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T05:54:54.540Z","etag":null,"topics":["github-action","github-actions","laravel","php","phpinsights"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/stefanzweifel.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":"2019-06-10T12:25:15.000Z","updated_at":"2024-04-14T05:54:54.541Z","dependencies_parsed_at":"2022-08-18T18:12:29.448Z","dependency_job_id":null,"html_url":"https://github.com/stefanzweifel/laravel-phpinsights-action","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/stefanzweifel%2Flaravel-phpinsights-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanzweifel%2Flaravel-phpinsights-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanzweifel%2Flaravel-phpinsights-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanzweifel%2Flaravel-phpinsights-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanzweifel","download_url":"https://codeload.github.com/stefanzweifel/laravel-phpinsights-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242768028,"owners_count":20182097,"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":["github-action","github-actions","laravel","php","phpinsights"],"created_at":"2024-10-03T13:17:39.566Z","updated_at":"2025-03-09T23:32:07.553Z","avatar_url":"https://github.com/stefanzweifel.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-phpinsights-action\n\n\u003e [!WARNING]\n\u003e This Action has been archived.    \n\u003e If you want to run [phpinsights](https://github.com/nunomaduro/phpinsights) in your project, you can achieve this by using a simple workflow like this.\n\n```yaml\nname: PHP Insights\non: push\njobs:\n  phpinsights:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v3\n\n    - uses: shivammathur/setup-php@v2\n\n    - uses: ramsey/composer-install@v3\n\n    - name: Run phpinsights\n      run: php artisan insights -n\n```\n\n---\n\nThis GitHub Action executes Laravel Artisan Command of [phpinsights](https://github.com/nunomaduro/phpinsights). The output of the Insights Command can be viewed in the Actions log.\n\nYou can optionally define minimum values for Insights categories. If the value falls below your given threshold, the run fails.\n\n### Usage\n\nThis Action doesn't install composer dependencies on it's own and doesn't contain a `phpinsights` binary.\n\nIt's therefore required that `phpinsights` is set as a dependency in your project and that another Action installs the composer dependencies.\n\nAn example Workflow can look like this.\n\n```yaml\nname: PHP Insights\n\non: push\n\njobs:\n  phpinsights:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v1\n\n    - uses: MilesChou/composer-action@master\n      with:\n        args: install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist\n\n    - uses: stefanzweifel/laravel-phpinsights-action@v1.1.1\n```\n\n\n### Arguments\n\nYou can pass any valid `phpinsights` argument to the Action. In this example, all issues are always displayed and a minimum value of 80 has to be achieved in all categories.\n\n```yaml\nname: PHP Insights\n\non: push\n\njobs:\n  phpinsights:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v1\n\n    - uses: MilesChou/composer-action@master\n      with:\n        args: install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist\n\n    - uses: stefanzweifel/laravel-phpinsights-action@v1.1.1\n      with:\n        args: -v --min-quality=80 --min-complexity=80 --min-architecture=80 --min-style=80 --disable-security-check\n```\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/stefanzweifel/laravel-phpinsights-action/tags).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/stefanzweifel/laravel-phpinsights-action/blob/master/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanzweifel%2Flaravel-phpinsights-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanzweifel%2Flaravel-phpinsights-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanzweifel%2Flaravel-phpinsights-action/lists"}