{"id":16218119,"url":"https://github.com/quasilyte/phpsmith","last_synced_at":"2025-03-19T10:30:55.965Z","repository":{"id":39414302,"uuid":"486239908","full_name":"quasilyte/phpsmith","owner":"quasilyte","description":"phpsmith creates random PHP and KPHP programs to test their compilers and runtimes","archived":false,"fork":false,"pushed_at":"2022-12-28T13:47:38.000Z","size":391,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T06:11:27.564Z","etag":null,"topics":["code-generator","codesmith","fuzzer","fuzzing","kphp","php","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quasilyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-27T15:03:20.000Z","updated_at":"2023-11-15T08:39:18.000Z","dependencies_parsed_at":"2023-01-31T06:45:53.667Z","dependency_job_id":null,"html_url":"https://github.com/quasilyte/phpsmith","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasilyte%2Fphpsmith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasilyte%2Fphpsmith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasilyte%2Fphpsmith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasilyte%2Fphpsmith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quasilyte","download_url":"https://codeload.github.com/quasilyte/phpsmith/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244407777,"owners_count":20447847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generator","codesmith","fuzzer","fuzzing","kphp","php","testing"],"created_at":"2024-10-10T11:48:33.215Z","updated_at":"2025-03-19T10:30:55.661Z","avatar_url":"https://github.com/quasilyte.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpsmith\n\n[![Tests](https://github.com/quasilyte/phpsmith/workflows/Tests/badge.svg)](https://github.com/quasilyte/phpsmith/blob/master/.github/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/quasilyte/phpsmith)](https://goreportcard.com/report/github.com/quasilyte/phpsmith)\n[![Go Reference](https://pkg.go.dev/badge/github.com/quasilyte/phpsmith.svg)](https://pkg.go.dev/github.com/quasilyte/phpsmith)\n\n![logo](docs/logo_small.png)\n\n`phpsmith` creates random PHP and KPHP programs to test their compilers and runtimes.\n\nIt can create both valid (but very contrived) and invalid programs.\n\n### Features\n\n* Random valid php code generation\n* Random invalid php code generation\n* Reproducible program generation by seed\n* Big generation variability\n\n### How it works\n\nPhpsmith can be executed in two modes: `fuzz`, `generate`:\n\n- `fuzz`:\n    - infinitely generate php programs\n    - run it on php and kphp\n    - catch exceptions, segmentation faults, fatal errors\n    - compare results between php and kphp\n    - save diff in logs\n\n- `generate`:\n    - generate php program by provided seed\n\n### Installation\n\n```bash\ngo install github.com/quasilyte/phpsmith\n```\n\n### Pre-installation requirements\n\n- php ≥7.0\n- kphp ≥9.3.0\n\n### Usage\n\nRun `phpsmith` without arguments to get help output.\n\n```\nPossible commands are:\n\n  version     print phpsmith version info to stdout and exit\n  fuzz        run fuzzing using the provided configuration\n  generate    generate a program using the provided configuration\n```\n\n`fuzz` command examples:\n\n```bash\nphpsmith fuzz -o ~/phpsmith_out\n```\n\n`generate` command examples:\n\n```bash\nphpsmith generate -seed 1651182107\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasilyte%2Fphpsmith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquasilyte%2Fphpsmith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasilyte%2Fphpsmith/lists"}