{"id":32467614,"url":"https://github.com/bitExpert/phpstan-sylius","last_synced_at":"2025-10-26T14:04:42.698Z","repository":{"id":278757240,"uuid":"936616138","full_name":"bitExpert/phpstan-sylius","owner":"bitExpert","description":"Sylius-specific extensions for PHPStan","archived":false,"fork":false,"pushed_at":"2025-10-21T06:23:02.000Z","size":200,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-22T01:59:44.551Z","etag":null,"topics":[],"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/bitExpert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-21T11:46:25.000Z","updated_at":"2025-10-21T06:22:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce97ab76-36ab-465c-b3d0-7b2053f73e24","html_url":"https://github.com/bitExpert/phpstan-sylius","commit_stats":null,"previous_names":["bitexpert/phpstan-sylius"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitExpert/phpstan-sylius","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fphpstan-sylius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fphpstan-sylius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fphpstan-sylius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fphpstan-sylius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitExpert","download_url":"https://codeload.github.com/bitExpert/phpstan-sylius/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitExpert%2Fphpstan-sylius/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281114802,"owners_count":26446046,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-26T14:01:59.161Z","updated_at":"2025-10-26T14:04:42.683Z","avatar_url":"https://github.com/bitExpert.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# bitexpert/phpstan-sylius\n\n[![Build Status](https://github.com/bitExpert/phpstan-sylius/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/bitExpert/phpstan-sylius/actions)\n[![installs on Packagist](https://img.shields.io/packagist/dt/bitexpert/phpstan-sylius)](https://packagist.org/packages/bitexpert/phpstan-sylius/)\n[![Mastodon Follow](https://img.shields.io/mastodon/follow/109408681246972700?domain=https://rheinneckar.social)](https://rheinneckar.social/@bitexpert)\n\n\nThis package provides some additional features for PHPStan to detect configuration issues in Sylius projects.\n\n## Requirements\n\nPHP: PHP 8.2 or higher\n\nSylius: Sylius 2.0 or higher\n\nPHPStan: PHPStan 2.0 or higher\n\n## Installation\n\nThe preferred way of installing `bitexpert/phpstan-sylius` is through Composer.\nYou can add `bitexpert/phpstan-sylius` as a dev dependency, as follows:\n\n```\ncomposer.phar require --dev bitexpert/phpstan-sylius\n```\n\n### PHPStan configuration\n\nIf you have not already a PHPStan configuration file `phpstan.neon` in your project, create a new empty file next to your `composer.json` file.\n\nSee [here](https://phpstan.org/config-reference) what options PHPStan allows you to configure. \n\n## Feature overview\n\nThis PHPStan extension works for both Sylius plugins and Sylius application projects.\n\nThe following rules have been implemented:\n- Rule to check if resource classes defined in AbstractGrid::getResourceClass() exist\n- Rule to check that configured grid fields belong to the configured resource class\n- Rule to check that configured filter fields belong to the configured resource class\n  - custom filter types are supported\n- Rule to check that grid classes configured via the `Index` attribute exist\n\nCurrent assumptions:\n- Grids are configured by extending the `Sylius\\Bundle\\GridBundle\\Grid\\AbstractGrid` class\n\n### Custom filter types\n\nTo include your custom filter type in the checks, implement the `bitExpert\\PHPStan\\Sylius\\Collector\\Grid\\Filter\\FilterNode` interface and add a service to your `phpstan.neon` file and tag it with the `phpstan.sylius.grid.filter` tag.\n\n## Contribute\n\nPlease feel free to fork and extend existing or add new features and send a pull request with your changes! To establish\na consistent code quality, please provide unit tests for all your changes and adapt the documentation.\n\n## Want To Contribute?\n\nIf you feel that you have something to share, then we’d love to have you.\nCheck out [the contributing guide](CONTRIBUTING.md) to find out how, as well as what we expect from you.\n\n## License\n\nPHPStan Sylius Extension is released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FbitExpert%2Fphpstan-sylius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FbitExpert%2Fphpstan-sylius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FbitExpert%2Fphpstan-sylius/lists"}