{"id":21040758,"url":"https://github.com/chojnicki/php-enum-generator","last_synced_at":"2026-04-13T18:01:46.096Z","repository":{"id":219828678,"uuid":"447716267","full_name":"chojnicki/php-enum-generator","owner":"chojnicki","description":"Converts list to PHP enum.","archived":false,"fork":false,"pushed_at":"2022-01-15T21:36:10.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T17:21:50.216Z","etag":null,"topics":["enum","enumerations","php","php8-features","php81","vue","vue3"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chojnicki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-13T18:53:35.000Z","updated_at":"2025-09-06T19:22:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"668a7ea7-2057-4a6b-9664-ac1ad70474de","html_url":"https://github.com/chojnicki/php-enum-generator","commit_stats":null,"previous_names":["chojnicki/php-enum-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chojnicki/php-enum-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chojnicki%2Fphp-enum-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chojnicki%2Fphp-enum-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chojnicki%2Fphp-enum-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chojnicki%2Fphp-enum-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chojnicki","download_url":"https://codeload.github.com/chojnicki/php-enum-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chojnicki%2Fphp-enum-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["enum","enumerations","php","php8-features","php81","vue","vue3"],"created_at":"2024-11-19T13:47:53.760Z","updated_at":"2026-04-13T18:01:46.079Z","avatar_url":"https://github.com/chojnicki.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Enum generator\n\nConverts list (text with values separated by new lines) to [PHP enum](https://wiki.php.net/rfc/enumerations). You can choose between basic or int/string backed enumerations.\n\nLive version: https://chojnicki.github.io/php-enum-generator\n\nJust reminder - PHP support's native enums from version 8.1!\n\n## Why?\n\nI had to do a lot of enums. For something with couple of values it's not big of a problem, but imagine for example list of countries or currencies 😱 Of course typing this by hand would be too boring. So I decided to write simple Regex for this task, and one thing to another - ended up with this tiny simple app instead. Maybe it will help someone else too, cheers! 🥂\n\n## Features\n\n- Simple or backed enums\n- Realtime generation\n- Editable PHP file template with indent detection\n- Names and values text transformations (uppercase/lowercase)\n- Auto incrementation of backed integer values\n\n\n## Usage and contribute\n\nIt's written using Vue, but there is no bundlers, depedencies etc. Just single `index.html` file to keep things simple. \nSo open this file in browser and you are ready to go, or edit it if you need to (PRs are welcomed). \n\n\n\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchojnicki%2Fphp-enum-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchojnicki%2Fphp-enum-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchojnicki%2Fphp-enum-generator/lists"}