# syyongx/php2go

Use Golang to implement PHP's common built-in functions.

Repository: https://github.com/syyongx/php2go
Canonical: https://ross.abutalabs.com/products/php2go
Language: Go
License: MIT
License Family: permissive
Topics: go, php
Last push: 2024-10-09T09:05:58+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3072, "days_push": 693, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1642, forks 304 (observed 2026-08-28T04:05:15.408406+00:00)

## What it is
A Go library that reimplements over 140 of PHP's common built-in functions (string, array, date/time, math, filesystem, URL, and more) in pure Go. It helps developers porting PHP code to Go or PHP developers seeking familiar function names.

## Use cases
- port php code to go
- use php string functions in golang
- php array functions equivalent in go
- migrate php project to golang
- php strtotime in go
- familiar php helpers for go developers

## When to choose
- you are translating PHP codebases to Go and want drop-in equivalents for built-in functions
- you want a small dependency-free MIT-licensed helper library with familiar PHP naming

## When to avoid
- you are writing idiomatic Go from scratch and prefer native standard library idioms
- you need full PHP semantics or the latest PHP functions beyond the ~140 implemented

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, file-system, date-time, serialization, json
- domain: developer-tools, programming-languages, cross-platform
- platform: go, cross-platform
- tags: php, go, porting, standard-library, string-functions, array-functions

## Member repositories
- syyongx/php2go (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:15.408406+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-30T03:46:21.252694+00:00, confidence not recorded.
  - readme: https://github.com/syyongx/php2go (fetched 2026-08-28T04:05:15.408406+00:00, sha b255bc335267)
- Data as of 2026-08-30T08:39:29.467469+00:00.
