{"id":13593944,"url":"https://github.com/formewp/forme-codegen","last_synced_at":"2025-03-02T09:20:11.645Z","repository":{"id":40274852,"uuid":"441519663","full_name":"formewp/forme-codegen","owner":"formewp","description":"The Forme cli tool - knocking WordPress into shape","archived":false,"fork":false,"pushed_at":"2025-02-20T21:54:39.000Z","size":812,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T22:31:40.397Z","etag":null,"topics":["cli","code-generation","forme","wordpress"],"latest_commit_sha":null,"homepage":"https://formewp.github.io","language":"PHP","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/formewp.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-24T17:17:33.000Z","updated_at":"2025-02-20T21:54:41.000Z","dependencies_parsed_at":"2024-06-11T08:54:17.928Z","dependency_job_id":"6f22a129-627b-4f2b-942f-b557157515bd","html_url":"https://github.com/formewp/forme-codegen","commit_stats":{"total_commits":253,"total_committers":1,"mean_commits":253.0,"dds":0.0,"last_synced_commit":"2298919e6dd57a4628ccff6924fe442c499229cd"},"previous_names":[],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formewp%2Fforme-codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formewp%2Fforme-codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formewp%2Fforme-codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formewp%2Fforme-codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formewp","download_url":"https://codeload.github.com/formewp/forme-codegen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482959,"owners_count":19970017,"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":["cli","code-generation","forme","wordpress"],"created_at":"2024-08-01T16:01:26.686Z","updated_at":"2025-03-02T09:20:11.611Z","avatar_url":"https://github.com/formewp.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://formewp.github.io\" target=\"_blank\"\u003e\u003cimg src=\"https://formewp.github.io/logo.svg\" width=\"400\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# Forme CodeGen\n\nCode Generation CLI For The Forme WordPress Framework.\n\nInstall it globally.\n\n```sh\ncomposer global require forme/codegen\n```\n\n[Click here for Documentation](https://formewp.github.io)\n\n## Development\n\nFor development run `phive install --force-accept-unsigned` followed by `composer install`.\n\nTools are in `./tools` rather than `./vendor/bin`\n\nYou also need [git cliff](https://github.com/orhun/git-cliff) for generating changelogs and [pcov](https://github.com/krakjoe/pcov) to generate coverage stats for infection to measure against.\n\nThe useful ones are set up as composer scripts.\n\n```sh\ncomposer test # run pest\ncomposer stan # run phpstan on src\ncomposer rector:check # rector dry run on src\ncomposer rector:fix # rector on src\ncomposer cs:check # php cs fixer dry run on src\ncomposer cs:fix # php cs fixer on src\ncomposer phar:build # build phar with box (experimental, some features don't work yet)\ncomposer changelog # run git cliff\ncomposer hooks # install git hooks (will run on composer install automatically)\ncomposer bump:version # bump to the next patch version - can also take argument \"minor\" or \"major\"\ncomposer infection # run infection on src\ncomposer infection:log # run infection on src and log to infection.html\n```\n\n### Output all help as markdown for docs\n\n```bash\n# requires findutils on OSX - you can drop the \"g\" xargs prefix on Linux\nforme list --raw | cut -d' ' -f1 | gxargs -n1 -d'\\n' forme --format=md help | sed $'s/\\x1b\\\\[91m\\([A-Za-z\\\\._-]*\\)\\x1b\\\\[0m/`\\\\1`/g' | sed $'s/    \\x1b\\\\[0\\;33m\\(.*\\)\\x1b\\\\[0m/```bash\\\\n\\\\1\\\\n```/g' | sed $'s,\\x1b\\\\[[0-9;]*[a-zA-Z],,g' \u003e codegen.md\n```\n\nManual steps:\n1. Check the section/command titles as this doesn't seem to output correct line breaks\n2. Find and replace home folder\n3. Copy into docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformewp%2Fforme-codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformewp%2Fforme-codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformewp%2Fforme-codegen/lists"}