Public record
Software health reportschema 0.34.0 · metrics 2.10.0 · 2026-09-12 02:46 UTC

cognesy / instructor-php

Unified LLM API, structured data outputs with LLMs, and agent SDK - in PHP

PHPMIT★ 327 stars⑂ 27 forkssince Feb 2024View on GitHub ↗
KindLibraryCommand-line toolhow this is determined

cognesy/instructor-php holds a health index of 84 out of 100, placing it in the Excellent band. It scores highest on AI Readiness (94/100) and lowest on Security (46/100). It was last updated 10 days ago. A single contributor accounts for most of its recent work.

84
overall / 100
Excellent

Software health index

Metrics are grouped into weighted categories on one standardized 1–100 scale. Overall starts as their weighted mean, calibrated against the distribution of the public record so bands carry percentile meaning; when public evidence triggers the High-Risk Jurisdiction Policy, the rating is adjusted and receives an At Risk ceiling of 34.

84
Exceptional93-100The record's top tier (≈ top 5%); essentially all checked criteria met
Excellent80-92Strong across the board; minor gaps
Good65-79Healthy; gaps are limited and manageable
Moderate50-64Acceptable with notable gaps; review recommended
Weak35-49Material weaknesses across several areas
At Risk20-34Significant weaknesses; adoption warrants caution
Critical1-19Severe problems (abandoned, single-maintainer, no hygiene)
VitalityCommunity &AdoptionSustainability &GovernanceEngineeringQualitySecurityAI Readiness

Score profile

Each axis is a category. The shape matters more than the average — a healthy subject fills the whole shape, while a spike-and-crater profile means strength in one dimension is masking risk in another.

The weighted overall 71 is calibrated to 84 on the published index scale (record calibration 2026-08-02).

Ownership

CognesyOrganization
7 followers50 public repossince Mar 2023

This repository is backed by an organization — shared, accountable stewardship that can outlive any single maintainer.

Package ecosystems

Metrics by category

Vitality

Is the project alive — is code being written and are releases shipping?

88Excellent · 21% of overall
How it's scored
28.8/36Push recency — last push 10 days ago
22.8/36Commit cadence — 33/52 weeks with commits
18/18Commit volume — 523 commits in the last year
10/10OpenSSF Scorecard: Maintained — 30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Inputs used
commits_last_year523
human_commit_share1
days_since_last_push10
active_weeks_last_year33

Release discipline

100Exceptional
How it's scored
27/27Ships releases — 100 releases published
36/36Release recency — latest release 13 days ago
27/27Release cadence — a release every ~0.5 days
0/10OpenSSF Scorecard: Signed-Releases — no data
Inputs used
releases_count100
latest_release_tagv2.9.5
releases_from_tagsno
days_since_latest_release13
mean_days_between_releases0.5
Excluded from scoring (no data or not applicable): OpenSSF Scorecard: Signed-Releases. Remaining weights renormalized.

Community & Adoption

Does the project have users, downloads, attention, and a welcoming setup for contributors?

60Moderate · 17% of overall
How it's scored
40.8/60Stars — 327 stars
11.8/25Forks — 27 forks
4.7/15Watchers — 8 watchers
Inputs used
forks27
stars327
watchers8
growth_stateunverified
growth_factor_pct100
growth_unverified_reasonno_history
How it's scored
22.5/22.5README
22.5/22.5License — recognized license (MIT)
18/18CONTRIBUTING guide
0/13.5Code of conduct
0/7.2Issue template
0/6.3PR template
Inputs used
has_readmeyes
has_licenseyes
readme_badges0
has_contributingyes
has_issue_templateno
has_code_of_conductno
readme_badge_services—
has_pull_request_templateno
How it's scored
50/80Monthly downloads — 5,576 downloads/month across packagist
0/20Registry dependents — 0 packages depend on it
Inputs used
packagescognesy/instructor-php
dependents0
ecosystemspackagist
total_downloads135,786
monthly_downloads5,576
unverified_packages_excluded—

Sustainability & Governance

Will the project survive its people — bus factor, responsiveness, who backs it, and package upkeep?

63Moderate · 23% of overall
How it's scored
9/54Bus factor — 1 contributor(s) cover half of all commits
0.3/22.5Commit distribution — top contributor authored 99% of commits
12.2/13.5Contributor breadth — 9 contributors
10/10OpenSSF Scorecard: Contributors — project has 5 contributing companies or organizations
Inputs used
bus_factor1
contributors_sampled9
top_contributor_share0.986
How it's scored
38.5/42Issue resolution — 92% of issues closed
28/30PR acceptance — 14/15 decided PRs merged
0/13Newcomer PR acceptance — no first-time contributor's PR decided in 30d
0/15OpenSSF Scorecard: Code-Review — Found 0/30 approved changesets -- score normalized to 0
Inputs used
merged_prs14
open_issues3
closed_issues33
prs_merged_7d0
prs_decided_7d0
prs_merged_30d0
prs_decided_30d0
issue_closed_ratio0.917
closed_unmerged_prs1
first_time_authors_30d0
first_time_prs_merged_30d0
first_time_prs_decided_30d0
Excluded from scoring (no data or not applicable): Newcomer PR acceptance. Remaining weights renormalized.
How it's scored
30/30Ownership backing — organization-owned
0/20Verified domain
6.5/25Owner reach — 7 followers of cognesy
19.4/25Track record — 50 public repos, account ~3 yr old
Inputs used
followers7
owner_typeOrganization
is_verifiedno
owner_logincognesy
public_repos50
account_age_days1,274

Package maintenance

100Exceptional
How it's scored
25/25Published & resolvable — 1 package(s) on packagist
35/35Publish recency — latest publish 13 days ago
20/20Version history — 216 published versions
20/20Not deprecated — active, not deprecated or yanked
Inputs used
packagescognesy/instructor-php
ecosystemspackagist
any_deprecatedno
min_days_since_publish13

Engineering Quality

Are baseline engineering and documentation practices in place?

88Excellent · 19% of overall
How it's scored
24/24CI workflows — 3 workflow(s)
24/24Tests present
16/16Linter config — phpstan.neon
0/9.6Pre-commit hooks
0/6.4.editorconfig
0/20OpenSSF Scorecard: CI-Tests — no data
Inputs used
has_ciyes
has_testsyes
has_editorconfigno
has_linter_configyes
has_precommit_configno
Excluded from scoring (no data or not applicable): OpenSSF Scorecard: CI-Tests. Remaining weights renormalized.

Documentation

100Exceptional
How it's scored
30/30README
25/25Documentation directory
15/15Documentation / homepage site — https://instructorphp.com
10/10Repository description
10/10Topics — 6 topics
10/10Wiki
Inputs used
topicsgenai, llm, php, agents, ai, ai-agents
has_wikiyes
homepagehttps://instructorphp.com
docs_sitehttps://instructorphp.com
has_readmeyes
has_docs_diryes
has_descriptionyes

Security

Are visible security and supply-chain practices strong, without unresolved high-risk jurisdiction exposure?

46Weak · 16% of overall
How it's scored
7.5/7.5Binary-Artifacts — no binaries found in the repo
0/7.5Branch-Protection — no data
0/2.5CI-Tests — no data
0/2.5CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected
0/7.5Code-Review — Found 0/30 approved changesets -- score normalized to 0
2.5/2.5Contributors — project has 5 contributing companies or organizations
0/10Dangerous-Workflow — no data
0/7.5Dependency-Update-Tool — no update tool detected
0/5Fuzzing — project is not fuzzed
2.5/2.5License — license file detected
7.5/7.5Maintained — 30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
0/5Packaging — no data
0/5Pinned-Dependencies — no data
0/5SAST — no SAST tool detected
0/5Security-Policy — security policy file not detected
0/7.5Signed-Releases — no data
0/7.5Token-Permissions — no data
0/7.5Vulnerabilities — 11 existing vulnerabilities detected
Inputs used
sourceopenssf_scorecard
checks_evaluated11
scorecard_versionv5.5.0
checks_inconclusive7
scorecard_aggregate3.3
Excluded from scoring (no data or not applicable): Branch-Protection, CI-Tests, Dangerous-Workflow, Packaging, Pinned-Dependencies, Signed-Releases, Token-Permissions. Remaining weights renormalized.

Dependency advisories

100Exceptional
How it's scored
35/35Direct dependencies free of known advisories — no direct dependency carries a known advisory
0/25Indirect dependencies free of known advisories — transitive set not separable from development and test dependencies in this scope
0/40No advisories left outstanding — no advisory carries a publication date
Inputs used
sourceosv
advisories21
affected_packages6
assessed_packages30
unassessed_packages99
affected_by_severityhigh 3, moderate 2, low 1
direct_affected_packages0
Excluded from scoring (no data or not applicable): Indirect dependencies free of known advisories, No advisories left outstanding. Remaining weights renormalized. Matched 30 resolved dependencies against OSV. 99 could not be assessed — no resolved version, an unsupported ecosystem, or beyond the reported package list. This repository publishes no package the index resolves, so the repository dependency graph was assessed instead. That graph mixes development and test pins with shipped dependencies, so only the declared runtime dependencies are scored; transitive findings are reported as context and excluded from the score. Reachability is not analyzed.

AI Readiness

How well is the repo equipped to be developed and maintained with AI coding agents? Carries a deliberately small weight (4%): agent tooling is a real maintenance signal, but a repository with none can still reach 100/100.

94Exceptional · 4% of overall
How it's scored
45/45Agent instructions — AGENTS.md, examples/D03_AgentTemplates/TemplateFromMarkdown/agent.md, packages/addons/notes/AGENT.md, packages/laravel/docs/agents.md
15/15Machine-readable docs (llms.txt) — llms.txt served by the project website (https://instructorphp.com/llms.txt)
40/40Legible commit history — 94 of 100 human commits state their intent (structured subject or explanatory body)
Inputs used
has_llms_txtyes
llms_txt_urlhttps://instructorphp.com/llms.txt
legible_history_share0.94
agent_instruction_filesAGENTS.md, examples/D03_AgentTemplates/TemplateFromMarkdown/agent.md, packages/addons/notes/AGENT.md, packages/laravel/docs/agents.md
agent_instruction_max_bytes39,143
How it's scored
18/18One-command bootstrap — justfile
22/22Automated tests
11/11Lint / format config — phpstan.neon
11/11Static type checking — pyrightconfig.json
10/10Reproducible environment — lockfile
10/10Demonstrated agent practice — 38 of the last 100 commits agent-authored or agent-credited
0/8Automated maintenance — no automated dependency updates observed
0/10OpenSSF Scorecard: Pinned-Dependencies — no data
Inputs used
has_nixno
has_testsyes
lockfilesuv.lock
has_dockerfileno
typed_languageno
bootstrap_filesjustfile
has_devcontainerno
has_linter_configyes
typecheck_configspyrightconfig.json
agent_commit_share0.38
toolchain_manifests—
dependency_bot_commit_share0
Excluded from scoring (no data or not applicable): OpenSSF Scorecard: Pinned-Dependencies. Remaining weights renormalized.
How it's scored
27/45Type-checkable code — PHP with type-check config (pyrightconfig.json)
55/55Manageable file sizes — 1/4,432 source files over 60KB
Inputs used
primary_languagePHP
largest_source_bytes114,832
source_files_sampled4,432
oversized_source_files1
How it's scored
0/40API schema (OpenAPI/GraphQL/proto) — not applicable to this kind of software
0/20MCP server — not applicable to this kind of software
40/40Runnable examples — cookbook, example, examples
Inputs used
example_dirscookbook, example, examples
has_mcp_signalno
api_schema_files—
interfaces_expected_of—
Excluded from scoring (no data or not applicable): API schema (OpenAPI/GraphQL/proto), MCP server. Remaining weights renormalized.

Key facts

327GitHub stars
9contributors
523commits, last 12 months
10days since last push
100releases
1bus factor
3open issues
Packagist, PyPIpackage ecosystems

Data collection warnings

  • Star history unavailable: GitHub GraphQL error: Resource not accessible by personal access token
  • Could not fetch pypi package 'instructor-php-docs' from its registry

More detail

Star and fork history 0 ★ / 27 ⇿
0Stars
27Forks
78Releases

When each star and fork was added, collected from GitHub and bucketed by day. Cumulative growth sits directly above the daily additions it is made of, so the two read against each other: steady organic accretion looks nothing like an abrupt, short-lived burst. Where that difference is measurable, it is reported as growth authenticity.

0510152025302712024-022025-042026-06
Major 2Minor 27Patch 27

Each point covers 3 days.

OpenSSF Scorecard 3.3 / 10
3.3aggregate

Independent, tool-agnostic security assessment from the open-source OpenSSF Scorecard. Each check rewards a security practice, not a specific vendor's tool. Checks Scorecard could not determine are marked n/a and excluded from the security score (never counted as zero).Scorecard v5.5.0 · 2026-09-12 02:46 UTC

10Binary-Artifactsno binaries found in the repo
n/aBranch-Protectioninternal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
n/aCI-Testsno pull request found
0CII-Best-Practicesno effort to earn an OpenSSF best practices badge detected
0Code-ReviewFound 0/30 approved changesets -- score normalized to 0
10Contributorsproject has 5 contributing companies or organizations
n/aDangerous-Workflowno workflows found
0Dependency-Update-Toolno update tool detected
0Fuzzingproject is not fuzzed
10Licenselicense file detected
10Maintained30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
n/aPackagingpackaging workflow not detected
n/aPinned-Dependenciesno dependencies found
0SASTno SAST tool detected
0Security-Policysecurity policy file not detected
n/aSigned-Releasesno releases found
n/aToken-PermissionsNo tokens found
0Vulnerabilities11 existing vulnerabilities detected
Direct dependencies 25
RegistryPackageVersion constraintManifest
Packagistcordis-php/cordis^1.0.1composer.json
Packagistadbario/php-dot-notation^3.3composer.json
Packagistaimeos/map^3.8composer.json
Packagistgioni06/gpt3-tokenizer^1.2composer.json
Packagisthelgesverre/toon^3.2composer.json
Packagistpsr/event-dispatcher^1.0composer.json
Packagistpsr/http-client^1.0composer.json
Packagistpsr/http-message^2.0composer.json
Packagistpsr/log^3.0composer.json
Packagistsymfony/console^7.3 || ^8.0composer.json
Packagistsymfony/config^7.3 || ^8.0composer.json
Packagistsymfony/filesystem^7.3 || ^8.0composer.json
Packagistsymfony/process^7.3 || ^8.0composer.json
Packagistsymfony/property-access^7.3 || ^8.0composer.json
Packagistsymfony/property-info^7.3 || ^8.0composer.json
Packagistsymfony/serializer^7.3 || ^8.0composer.json
Packagistsymfony/type-info^7.3 || ^8.0composer.json
Packagistsymfony/validator^7.3 || ^8.0composer.json
Packagistsymfony/var-dumper^7.3 || ^8.0composer.json
Packagistsymfony/yaml^7.3 || ^8.0composer.json
Packagisttwig/twig^3.0composer.json
Packagistvlucas/phpdotenv^5.6composer.json
Packagistyethee/tiktoken^1.1composer.json
PyPImkdocs==1.6.1pyproject.toml
PyPImkdocs-material==9.7.7pyproject.toml
All dependencies 129

Full resolved dependency set from the GitHub dependency graph: 25 direct and 104 indirect (transitive) packages. The transitive closure is complete when the repository commits a lockfile.

RegistryPackageVersionRelation
Packagistadbario/php-dot-notation—direct
Packagistaimeos/map—direct
Packagistcordis-php/cordis—direct
Packagistgioni06/gpt3-tokenizer—direct
Packagisthelgesverre/toon—direct
Packagistpsr/event-dispatcher—direct
Packagistpsr/http-client—direct
Packagistpsr/http-message—direct
Packagistpsr/log—direct
Packagistsymfony/config—direct
Packagistsymfony/console—direct
Packagistsymfony/filesystem—direct
Packagistsymfony/process—direct
Packagistsymfony/property-access—direct
Packagistsymfony/property-info—direct
Packagistsymfony/serializer—direct
Packagistsymfony/type-info—direct
Packagistsymfony/validator—direct
Packagistsymfony/var-dumper—direct
Packagistsymfony/yaml—direct
Packagisttwig/twig—direct
Packagistvlucas/phpdotenv—direct
Packagistyethee/tiktoken—direct
PyPImkdocs1.6.1direct
PyPImkdocs-material9.7.7direct
Packagistcebe/markdown—indirect
Packagistcognesy/agent-ctrl—indirect
Packagistcognesy/agents—indirect
Packagistcognesy/instructor-addons—indirect
Packagistcognesy/instructor-auxiliary—indirect
Packagistcognesy/instructor-config—indirect
Packagistcognesy/instructor-contracts—indirect
Packagistcognesy/instructor-dynamic—indirect
Packagistcognesy/instructor-events—indirect
Packagistcognesy/instructor-http-client—indirect
Packagistcognesy/instructor-http-pool—indirect
Packagistcognesy/instructor-hub—indirect
Packagistcognesy/instructor-messages—indirect
Packagistcognesy/instructor-metrics—indirect
Packagistcognesy/instructor-pipeline—indirect
Packagistcognesy/instructor-polyglot—indirect
Packagistcognesy/instructor-sandbox—indirect
Packagistcognesy/instructor-schema—indirect
Packagistcognesy/instructor-setup—indirect
Packagistcognesy/instructor-stream—indirect
Packagistcognesy/instructor-struct—indirect
Packagistcognesy/instructor-telemetry—indirect
Packagistcognesy/instructor-templates—indirect
Packagistcognesy/instructor-utils—indirect
Packagistcognesy/logging—indirect
Packagistcognesy/xprompt—indirect
Packagistcomposer-runtime-api—indirect
Packagisteftec/bladeone—indirect
Packagistext-ctype—indirect
Packagistext-curl—indirect
Packagistext-dom—indirect
Packagistext-fileinfo—indirect
Packagistext-libxml—indirect
Packagistext-simplexml—indirect
Packagistext-xmlreader—indirect
Packagistguzzlehttp/guzzle—indirect
Packagistguzzlehttp/psr7—indirect
Packagisticanhazstring/composer-unused—indirect
Packagistilluminate/console—indirect
Packagistilluminate/contracts—indirect
Packagistilluminate/database—indirect
Packagistilluminate/http—indirect
Packagistilluminate/support—indirect
Packagistjetbrains/phpstorm-attributes—indirect
Packagistlaravel/pint—indirect
Packagistleague/commonmark—indirect
Packagistleague/html-to-markdown—indirect
Packagistmaglnet/composer-require-checker—indirect
Packagistmockery/mockery—indirect
Packagistmonolog/monolog—indirect
Packagistnikic/iter—indirect
Packagistorchestra/testbench—indirect
Packagistpestphp/pest—indirect
Packagistphp—indirect
Packagistphpbench/phpbench—indirect
Packagistphpdocumentor/reflection-docblock—indirect
Packagistphpdocumentor/type-resolver—indirect
Packagistphpstan/phpdoc-parser—indirect
Packagistphpstan/phpstan—indirect
Packagistphpstan/phpstan-strict-rules—indirect
Packagistpsr/container—indirect
Packagistpsr/http-factory-implementation—indirect
Packagistroave/security-advisories—indirect
Packagistshipmonk/dead-code-detector—indirect
Packagistspatie/browsershot—indirect
Packagistsymfony/css-selector—indirect
Packagistsymfony/dependency-injection—indirect
Packagistsymfony/dom-crawler—indirect
Packagistsymfony/event-dispatcher—indirect
Packagistsymfony/finder—indirect
Packagistsymfony/framework-bundle—indirect
Packagistsymfony/http-client—indirect
Packagistsymfony/http-kernel—indirect
Packagistsymfony/messenger—indirect
Packagisttoolkit/cli-utils—indirect
Packagistvimeo/psalm—indirect
PyPIbabel2.17.0indirect
PyPIbackrefs5.9indirect
PyPIcertifi2025.8.3indirect
PyPIcharset-normalizer3.4.3indirect
PyPIclick8.2.1indirect
PyPIcolorama0.4.6indirect
PyPIghp-import2.1.0indirect
PyPIidna3.10indirect
PyPIinstructor-php-docs1.0.0indirect
PyPIjinja23.1.6indirect
PyPImarkdown3.8.2indirect
PyPImarkupsafe3.0.2indirect
PyPImergedeep1.3.4indirect
PyPImkdocs-get-deps0.2.0indirect
PyPImkdocs-material-extensions1.3.1indirect
PyPIpackaging25.0indirect
PyPIpaginate0.5.7indirect
PyPIpathspec0.12.1indirect
PyPIplatformdirs4.3.8indirect
PyPIpygments2.19.2indirect
PyPIpymdown-extensions10.16.1indirect
PyPIpython-dateutil2.9.0.post0indirect
PyPIpyyaml6.0.2indirect
PyPIpyyaml-env-tag1.1indirect
PyPIrequests2.32.4indirect
PyPIsix1.17.0indirect
PyPIurllib32.5.0indirect
PyPIwatchdog6.0.0indirect
Dependency advisories 6

This repository publishes no package the index resolves, so its own dependency graph was assessed — 30 packages, which also include development and test pins that never ship: 6 carry known advisories, of which 0 are direct. 99 could not be assessed — no resolved version, an unsupported ecosystem, or beyond the reported package list.

PackageVersionRelationSeverityAdvisoriesFixed in
click8.2.1indirecthigh18.3.3
pymdown-extensions10.16.1indirecthigh611.0.1
urllib32.5.0indirecthigh82.7.0
idna3.10indirectmoderate23.15
requests2.32.4indirectmoderate22.33.0
pygments2.19.2indirectlow22.20.0

An advisory means the version recorded in the dependency graph falls inside an advisory’s affected range. Reachability is not analysed, and the graph includes development and test pins — a finding may concern tooling rather than shipped software.

Raw JSON report machine-readable

Feedback

Spotted something off in this report, or have thoughts to share? Wrong measurements, missed tooling, ideas, questions — anything is welcome. Every message is read and gets a response.

The message is kept through sign-in.

Scores are signals, not warranties. They reflect publicly visible practices on GitHub — not a code audit, and not a security guarantee.

Missing data is excluded and weights renormalized, never scored as zero. Methodology is versioned and open: metrics v2.10.0, schema v0.34.0 — full methodology · metrics wiki.

How one result sits in the wider record: aggregate statistics — Packagist.