# PHPStan vs RuboCop

**Leader by Vioscale score:** RuboCop

| Attribute | PHPStan | RuboCop |
|---|---|---|
| **Vioscale score** | 52.6 (53% (medium)) | 69.7 (53% (medium)) |
| activity.commits_last_30d | 100 | 100 |
| adoption.dependent_repos | 0 | 115,529 |
| adoption.github_stars | 14,082 | 12,899 |
| deployment.options | `{"self_hosted":true}` | - |
| description.long | PHPStan is a static analysis tool for PHP that scans codebases to find bugs before they reach production. It offers both a free open-source version and a paid Pro tier with a web UI and continuous background analysis. | RuboCop is an open-source Ruby linter and formatter that enforces code style based on the Ruby community style guide. It detects code quality issues and can automatically fix many of them, with extensive configuration options and extensibility through community plugins. |
| features.capabilities | `{"autofix":false,"function":"static_analyzer","ci_gating":true,"incremental":true,"open_source":"oss","config_model":"config_file","custom_rules":true,"impl_language":"PHP","pricing_model":"free","language_scope":"single_language","editor_integration":true}` | `{"autofix":true,"function":"linter_formatter","deployment":"cli_local","open_source":"oss","config_model":"config_file","custom_rules":true,"impl_language":"Ruby","pricing_model":"free","language_scope":"single_language","editor_integration":true}` |
| integrations.count | 3 | 14 |
| integrations.list | `[{"name":"Symfony"},{"name":"Laravel"},{"name":"Doctrine"}]` | `[{"name":"rubocop-performance"},{"name":"rubocop-rails"},{"name":"rubocop-rspec"},{"name":"rubocop-minitest"},{"name":"rubocop-rake"},{"name":"rubocop-sequel"},{"name":"rubocop-thread_safety"},{"name":"rubocop-capybara"},{"name":"rubocop-factory_bot"},{"name":"rubocop-rspec_rails"},{"name":"rubocop-i18n"},{"name":"Eglot"},{"name":"Helix"},{"name":"Flycheck"}]` |
| language.primary | PHP | Ruby |
| license.spdx | MIT | MIT |
| market.availability | `{"hqCountry":"CZ","primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | - |
| platform.support | `{"cli":true,"web":true}` | `{"cli":true}` |
| pricing | `{"type":"hybrid","plans":[{"free":true,"name":"PHPStan (Free)","summary":"Free, open-source","features":["Bug detection","CLI interface","CI integration","Rule levels 0-10","Custom rules support"],"description":"Open-source version with CLI interface","contactSales":false},{"free":false,"name":"PHPStan Pro","summary":"Subscription required; exact pricing not disclosed","features":["Web UI instead of CLI","Auto-refresh","Continuous background analysis"],"description":"Premium package with web UI and continuous analysis","contactSales":false}],"summary":"Free open-source tier; Pro subscription available at undisclosed pricing","currency":"USD","freeTier":true,"sourceUrl":"https://phpstan.org/","retrievedAt":"2026-08-14T08:30:37.776Z"}` | `{"type":"open_source","summary":"Free and open source","freeTier":true,"sourceUrl":"https://rubocop.org/","retrievedAt":"2026-08-14T08:31:22.550Z"}` |
| pricing.free_tier | yes | yes |
| pricing.model | freemium | commercial |
| pricing.price_level | low | free |
| pricing.transparent | no | yes |
| release.cadence_days | 2 | 16 |
| release.history | `[{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.9","date":"2026-08-22T07:39:37Z","type":"stable","version":"2.2.9"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.8","date":"2026-08-04T22:23:06Z","type":"stable","version":"2.2.8"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.7","date":"2026-07-29T17:40:47Z","type":"stable","version":"2.2.7"},{"url":"https://github.com/phpstan/phpstan/releases/tag/1.12.34","date":"2026-07-28T10:05:36Z","type":"stable","version":"1.12.34"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.6","date":"2026-07-26T21:24:15Z","type":"stable","version":"2.2.6"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.5","date":"2026-07-05T06:33:25Z","type":"stable","version":"2.2.5"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.4","date":"2026-07-03T07:01:31Z","type":"stable","version":"2.2.4"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.3","date":"2026-06-30T21:16:38Z","type":"stable","version":"2.2.3"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.2","date":"2026-06-05T09:01:35Z","type":"stable","version":"2.2.2"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.1","date":"2026-05-28T14:45:45Z","type":"stable","version":"2.2.1"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.2.0","date":"2026-05-28T08:41:56Z","type":"stable","version":"2.2.0"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.56","date":"2026-05-26T17:06:15Z","type":"stable","version":"2.1.56"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.55","date":"2026-05-18T11:59:05Z","type":"stable","version":"2.1.55"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.54","date":"2026-04-29T13:35:54Z","type":"stable","version":"2.1.54"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.53","date":"2026-04-28T16:16:29Z","type":"stable","version":"2.1.53"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.52","date":"2026-04-28T12:27:36Z","type":"stable","version":"2.1.52"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.51","date":"2026-04-21T18:23:04Z","type":"stable","version":"2.1.51"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.50","date":"2026-04-17T13:11:29Z","type":"stable","version":"2.1.50"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.49","date":"2026-04-16T21:12:00Z","type":"stable","version":"2.1.49"},{"url":"https://github.com/phpstan/phpstan/releases/tag/2.1.48","date":"2026-04-15T20:25:35Z","type":"stable","version":"2.1.48"}]` | `[{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.90.0","date":"2026-08-24T11:40:21Z","type":"stable","version":"v1.90.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.89.0","date":"2026-08-04T09:00:37Z","type":"stable","version":"v1.89.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.88.2","date":"2026-07-08T06:22:30Z","type":"stable","version":"v1.88.2"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.88.1","date":"2026-07-01T09:52:01Z","type":"stable","version":"v1.88.1"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.88.0","date":"2026-06-16T05:10:59Z","type":"stable","version":"v1.88.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.87.0","date":"2026-05-30T08:52:19Z","type":"stable","version":"v1.87.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.86.2","date":"2026-05-14T05:26:06Z","type":"stable","version":"v1.86.2"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.86.1","date":"2026-04-09T06:12:37Z","type":"stable","version":"v1.86.1"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.86.0","date":"2026-03-23T10:39:38Z","type":"stable","version":"v1.86.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.85.1","date":"2026-03-05T10:22:56Z","type":"stable","version":"v1.85.1"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.85.0","date":"2026-02-26T09:50:24Z","type":"stable","version":"v1.85.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.84.2","date":"2026-02-12T07:25:18Z","type":"stable","version":"v1.84.2"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.84.1","date":"2026-02-03T01:55:56Z","type":"stable","version":"v1.84.1"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.84.0","date":"2026-01-27T09:57:17Z","type":"stable","version":"v1.84.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.82.1","date":"2025-12-24T08:47:02Z","type":"stable","version":"v1.82.1"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.82.0","date":"2025-12-17T10:25:17Z","type":"stable","version":"v1.82.0"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.81.7","date":"2025-10-31T09:01:14Z","type":"stable","version":"v1.81.7"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.81.6","date":"2025-10-21T07:34:59Z","type":"stable","version":"v1.81.6"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.81.1","date":"2025-09-26T13:35:08Z","type":"stable","version":"v1.81.1"},{"url":"https://github.com/rubocop/rubocop/releases/tag/v1.81.0","date":"2025-09-25T12:50:13Z","type":"stable","version":"v1.81.0"}]` |
| security.gdpr | yes | - |
| security.scorecard | 4.9 | 5.6 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=nixpkgs&package_name=php82Packages.phpstan&per_page=100","last_12m":0,"max_severity":null}` | `{"count":1,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=rubygems&package_name=rubocop&per_page=100","last_12m":0,"max_severity":"LOW"}` |

## Capabilities (Code Quality Tools)

| Capability | PHPStan | RuboCop |
|---|:--:|:--:|
| **Core** |  |  |
| Function | Static analyzer | Linter + formatter |
| Language scope | Single-language | Single-language |
| Implementation language | PHP | Ruby |
| **Capability** |  |  |
| Autofix | ✗ | ✓ |
| **Config** |  |  |
| Config model | Config file | Config file |
| **Extensibility** |  |  |
| Custom rules | ✓ | ✓ |
| **Deployment** |  |  |
| Deployment | - | CLI-local |
| **Delivery** |  |  |
| Editor integration | ✓ | ✓ |
| CI / VCS gating | ✓ | - |
| **Insight** |  |  |
| Code metrics | - | - |
| **Performance** |  |  |
| Incremental / monorepo aware | ✓ | - |
| **Licensing** |  |  |
| Open-source | OSS | OSS |
| **Commercial** |  |  |
| Pricing model | Free | Free |

*Source: Vioscale. Generated 2026-09-01T15:12:09.947Z. "-" = undocumented, not absent.*
