{"repo":"b7s/catraca","free":true,"listed":false,"github":"https://github.com/b7s/catraca","clone":"git clone https://github.com/b7s/catraca.git","description":"PHP Quality Guardian that enforces the Catraca (ratchet) principle: quality metrics can only improve or stay the same, never regress.","language":"PHP","stars":20,"topics":["analysis","analytics","code","laravel","php","quality","ratchet","babysit"],"license":null,"category":"analytics","readme_excerpt":"Catraca PHP Quality Guardian that enforces the Catraca (ratchet) principle : quality metrics can only improve or stay the same, never regress. Last reviewed: 2026-08-01. Catraca (Portuguese for \"turnstile\" / \"ratchet\") — like a turnstile at a subway station, quality can only move forward. Install Quality Gates Gates run in order. A failure blocks the PR. # Gate Default tool order Default threshold --- ------ -------------------- ------------------- 1 Security Audit Composer audit + built-in checks 0 critical/high advisories, 0 findings 2 Code Style Mago format - Pint - PHP CS Fixer 0 violations 3 Static Analysis Mago analyze - PHPStan - Psalm 0 errors 4 Test Coverage Pest - PHPUnit 85% minimum 5 Duplication PHPCPD 0% maximum 6 File Size Built-in 1000 lines per file 7 Cyclomatic Complexity PHP Metrics Block at 50, warn at 20 8 Performance Mago lint - PHP CS Fixer, plus built-in checks 0 violations Dependencies Catraca wraps your existing PHP quality tools. Install the ones you need. Mago 1.45.0 or newer is the preferred v2 backend: With tool: auto , Catraca tries the centrally defined fallback order and skips a gate only when none of its candidates is installed. An explicitly selected missing tool is reported without silently switching tools. Security audit uses composer audit (built-in) and 16 source-code checks. Usage catraca init — Initialize baseline Creates catraca baseline.json in your project root with default thresholds: Default baseline: Setting Default --------- ----","default_branch":null,"files":null,"tree":[],"storefront":"/r/b7s","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/b7s/catraca/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}