{"adoption": {"forks": 169, "observed_at": "2026-08-28T04:06:56.700002+00:00", "stars": 2496}, "canonical_url": "https://ross.abutalabs.com/products/safe", "card": {"archived": false, "artifact_type": "library", "description": "All PHP functions, rewritten to throw exceptions instead of returning false", "domain": ["developer-tools", "programming-languages"], "enriched": true, "function": ["error-handling", "developer-tools"], "health_score": 96, "homepage": null, "language": "PHP", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["thecodingmachine/safe"], "name": "thecodingmachine/safe", "platform": ["php"], "pushed_at": "2026-08-17T23:43:41+00:00", "repo": "thecodingmachine/safe", "stars": 2496, "tags": ["exceptions", "php-core-functions", "phpstan", "static-analysis"], "topics": ["php", "functions", "exceptions"], "urls": [], "use_cases": ["replace php functions that return false with exception-throwing versions", "avoid silently ignoring errors from file_get_contents or json_decode", "enforce safe function usage with phpstan", "write cleaner php error handling without manual false checks", "get exception-throwing datetime classes"], "what_it_is": "Safe-PHP redeclares PHP core functions in a Safe namespace so they throw exceptions instead of returning false on error. It also provides Safe DateTime classes and a PHPStan rule to enforce usage of the safe variants.", "when_to_avoid": ["you cannot change function calls in a large legacy codebase", "you need minimal dependencies and prefer manual error checking", "your framework already wraps core functions with its own error handling"], "when_to_choose": ["you want exceptions instead of false return values from PHP core functions", "you use PHPStan and want automated enforcement of safe function imports", "you are starting a new PHP project and want robust error handling by default"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/safe", "repo": "thecodingmachine/safe", "role": "main", "score": 89}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "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:06:56.700002+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:56.700002+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:27:12.429092+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1abf27ccbb8e03a85a8be6bfabd8435baf3e70035a7047414bcf82a94a43107c", "fetched_at": "2026-08-28T04:06:56.700002+00:00", "kind": "readme", "missing": false, "url": "https://github.com/thecodingmachine/safe"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 100, "rhythm": 71}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2921, "days_push": 16, "days_rel": 199, "gap_med": 12, "n_releases_24m": 8}, "score": 89, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}