{"id":18561086,"url":"https://github.com/lamoda/php-enum-bundle","last_synced_at":"2025-04-10T02:31:22.671Z","repository":{"id":32724070,"uuid":"140592038","full_name":"lamoda/php-enum-bundle","owner":"lamoda","description":"Utility wrapper for https://github.com/paillechat/php-enum","archived":false,"fork":false,"pushed_at":"2024-02-15T11:07:26.000Z","size":27,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-24T15:42:05.434Z","etag":null,"topics":["bundle","enum","php","php-enum-bundle"],"latest_commit_sha":null,"homepage":null,"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/lamoda.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-11T15:05:39.000Z","updated_at":"2024-10-16T11:46:07.000Z","dependencies_parsed_at":"2024-11-06T22:06:33.743Z","dependency_job_id":null,"html_url":"https://github.com/lamoda/php-enum-bundle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fphp-enum-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fphp-enum-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fphp-enum-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamoda%2Fphp-enum-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamoda","download_url":"https://codeload.github.com/lamoda/php-enum-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144203,"owners_count":21054884,"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":["bundle","enum","php","php-enum-bundle"],"created_at":"2024-11-06T22:05:43.171Z","updated_at":"2025-04-10T02:31:22.351Z","avatar_url":"https://github.com/lamoda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lamoda PHP Enum bundle\nUtility wrapper for https://github.com/paillechat/php-enum\n\n## Installation\n\nUsage is as simple as \n\n```bash\ncomposer require lamoda/enum-bundle:^1.0\n```\n\n```php\n// Kernel\n\npublic function registerBundles()\n{\n    // ...\n    $bundles[] = new \\Lamoda\\EnumBundle\\LamodaEnumBundle();\n    // ...\n}\n```\n\n```yaml\n# config.yml\nlamoda_enum:\n    dbal_types:\n        # short example\n        my_domain_enum: My\\Domain\\Enum\n        # full example\n        my_domain_enum_2: \n          class: My\\Domain\\Enum\n          # identical strategy saves enum as its name as is, no conversion\n          # lowercase strategy converts enum name to lowercase and vice versa on fetch\n          strategy: identical    \n```\n\n```php\nclass MyEntity\n{\n    /** @ORM\\Column(type=\"my_domain_enum\") */\n    private $value;\n}\n```\n\nThis will enable conversion of value field from your enum\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamoda%2Fphp-enum-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamoda%2Fphp-enum-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamoda%2Fphp-enum-bundle/lists"}