{"adoption": {"forks": 8, "observed_at": "2026-08-28T04:05:32.621699+00:00", "stars": 1761}, "canonical_url": "https://ross.abutalabs.com/products/security-csrf", "card": {"archived": false, "artifact_type": "library", "description": "Symfony Security Component - CSRF Library", "domain": ["security", "web-development", "backend"], "enriched": true, "function": ["security", "middleware"], "health_score": 96, "homepage": "https://symfony.com/security", "language": "PHP", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["symfony/security-csrf"], "name": "symfony/security-csrf", "platform": ["php"], "pushed_at": "2026-08-03T16:43:39+00:00", "repo": "symfony/security-csrf", "stars": 1761, "tags": ["csrf", "symfony-component", "token-generation", "token-validation", "form-protection"], "topics": ["php", "symfony", "component", "symfony-component"], "urls": [], "use_cases": ["protect forms from CSRF attacks", "generate and validate CSRF tokens in PHP", "secure state-changing POST requests", "add CSRF protection to a non-Symfony PHP project", "validate tokens for AJAX form submissions"], "what_it_is": "The Symfony Security CSRF component provides a CsrfTokenManager class for generating and validating cross-site request forgery (CSRF) tokens in PHP applications. It is part of the Symfony framework's security ecosystem but can be used standalone.", "when_to_avoid": ["you need full authentication or authorization, not just CSRF protection", "your framework already bundles CSRF protection", "you are not working in PHP"], "when_to_choose": ["you need CSRF token generation and validation in any PHP application", "you are building a Symfony app and need form security", "you want a small, well-maintained, MIT-licensed security component"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/security-csrf", "repo": "symfony/security-csrf", "role": "main", "score": 93}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.621699+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:27:12.769655+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "99929a15de54724d0357a964a66d3dd9b3661c1c3336d538b3b28fd2afe1f1c3", "fetched_at": "2026-08-28T04:05:32.621699+00:00", "kind": "readme", "missing": false, "url": "https://github.com/symfony/security-csrf"}, {"content_hash": "b8a4472dada7f9ef19adc9e93d04772b78f2c0058a6bed74d7dde61fba2b765c", "fetched_at": "2026-08-29T11:05:29.697908+00:00", "kind": "homepage", "missing": false, "url": "https://symfony.com/security"}, {"content_hash": "44889134f4fb7667fc156f6aa19b524c32df208a02756d59eacc0262725f7bfd", "fetched_at": "2026-08-29T11:05:29.707497+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/doc"}, {"content_hash": "5bd749e2b6762e15759a7073bf28626338d35575d716f7564d4f7323e88c911b", "fetched_at": "2026-08-29T11:05:29.709473+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/releases"}, {"content_hash": "0739a28df2e8978f23a411a334f32df5009246347dc8a76f65618617752e9a56", "fetched_at": "2026-08-29T11:05:29.711737+00:00", "kind": "site_page", "missing": false, "url": "https://symfony.com/blog/category/releases"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 95, "longevity": 100, "rhythm": 86}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4675, "days_push": 30, "days_rel": 96, "gap_med": 18.5, "n_releases_24m": 23}, "score": 93, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}