# smknstd/modern-php-cheatsheet

Cheatsheet for some PHP knowledge you will frequently encounter in modern projects.

Repository: https://github.com/smknstd/modern-php-cheatsheet
Canonical: https://ross.abutalabs.com/products/modern-php-cheatsheet
Homepage: https://smknstd.github.io/modern-php-cheatsheet/
License: MIT
License Family: permissive
Topics: php8-features, cheatsheet
Last push: 2025-02-11T15:20:15+00:00

## Health v2 (maintenance only)
Score: 35/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 6, release rhythm 35, longevity 100
- inputs: {"age_days": 1791, "days_push": 568, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1326, forks 112 (observed 2026-08-28T04:04:22.736938+00:00)

## What it is
A cheatsheet documenting modern PHP (up to PHP 8.3/8.4) features and syntax for developers with basic PHP knowledge. It covers concepts like enums, match expressions, nullsafe operator, named arguments, and type declarations to help developers read contemporary PHP codebases.

## Use cases
- learn modern php 8 features
- understand enums and match expressions in php
- catch up on new php syntax before working on laravel or symfony
- quick reference for php type declarations and nullsafe operator
- cheatsheet for php concepts in modern codebases

## When to choose
- you know basic PHP but struggle with modern PHP 8.x code
- you want a concise reference for recent PHP language features
- you are transitioning from older PHP versions to PHP 8+

## When to avoid
- you need to learn PHP from scratch as a beginner
- you need framework-specific documentation for Laravel or Symfony
- you need an interactive tutorial with exercises

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation
- domain: programming-languages, tutorials, web-development, developer-tools
- platform: php
- tags: cheatsheet, php8, reference-guide, modern-php

## Member repositories
- smknstd/modern-php-cheatsheet (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.736938+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:46:24.348047+00:00, confidence not recorded.
  - readme: https://github.com/smknstd/modern-php-cheatsheet (fetched 2026-08-28T04:04:22.736938+00:00, sha 011888b6526e)
  - homepage: https://smknstd.github.io/modern-php-cheatsheet/ (fetched 2026-08-29T12:05:41.224859+00:00, sha 4a3068b9d92f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
