{"id":18496914,"url":"https://github.com/shapecode/hidden-entity-type-bundle","last_synced_at":"2025-08-20T23:32:37.704Z","repository":{"id":45248704,"uuid":"63538020","full_name":"shapecode/hidden-entity-type-bundle","owner":"shapecode","description":" Hidden entity type for Symfony forms.","archived":false,"fork":false,"pushed_at":"2023-12-02T14:41:11.000Z","size":136,"stargazers_count":27,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-07T08:33:26.100Z","etag":null,"topics":["entity","hidden","symfony","type"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/shapecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"nicklog","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"nicklog","issuehunt":null,"otechie":null,"custom":["http://paypal.me/nloges"]}},"created_at":"2016-07-17T15:11:01.000Z","updated_at":"2024-03-05T12:46:49.000Z","dependencies_parsed_at":"2024-06-18T18:36:37.124Z","dependency_job_id":"a8f5e52e-fb0b-402c-aeb4-189e71ef89ff","html_url":"https://github.com/shapecode/hidden-entity-type-bundle","commit_stats":{"total_commits":81,"total_committers":11,"mean_commits":7.363636363636363,"dds":0.5061728395061729,"last_synced_commit":"6d8f3c3417b31d7b29a9ded6ed3e69e49cc23c96"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fhidden-entity-type-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fhidden-entity-type-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fhidden-entity-type-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Fhidden-entity-type-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shapecode","download_url":"https://codeload.github.com/shapecode/hidden-entity-type-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230471175,"owners_count":18231193,"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":["entity","hidden","symfony","type"],"created_at":"2024-11-06T13:32:32.954Z","updated_at":"2024-12-19T17:08:31.965Z","avatar_url":"https://github.com/shapecode.png","language":"PHP","readme":"# Shapecode - Hidden Entity Type Bundle\n\nHidden entity type for Symfony forms.\n\n[![paypal](https://img.shields.io/badge/Donate-Paypal-blue.svg)](http://paypal.me/nloges)\n\n[![PHP Version](https://img.shields.io/packagist/php-v/shapecode/hidden-entity-type-bundle.svg)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n[![Latest Stable Version](https://img.shields.io/packagist/v/shapecode/hidden-entity-type-bundle.svg?label=stable)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n[![Latest Unstable Version](https://img.shields.io/packagist/vpre/shapecode/hidden-entity-type-bundle.svg?label=unstable)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n[![Total Downloads](https://img.shields.io/packagist/dt/shapecode/hidden-entity-type-bundle.svg)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n[![Monthly Downloads](https://img.shields.io/packagist/dm/shapecode/hidden-entity-type-bundle.svg)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n[![Daily Downloads](https://img.shields.io/packagist/dd/shapecode/hidden-entity-type-bundle.svg)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n[![License](https://img.shields.io/packagist/l/shapecode/hidden-entity-type-bundle.svg)](https://packagist.org/packages/shapecode/hidden-entity-type-bundle)\n\n## What is it?\n\nThis is a Symfony form type that allows you to add an entity in your form that would be displayed as a hidden input.\n\n## Installation\n\n### Step 1: Download HiddenEntityTypeBundle using composer\n```bash\n$ composer require shapecode/hidden-entity-type-bundle\n```\nComposer will install the bundle to your project's vendor directory.\n\n### Step 2: Enable the bundle\nEnable the bundle in the config if flex it did´nt do it for you:\n```php\n\u003c?php\n// config/bundles.php\n\nreturn [\n    // ...\n    Shapecode\\Bundle\\HiddenEntityTypeBundle\\ShapecodeHiddenEntityTypeBundle::class =\u003e ['all' =\u003e true],\n    // ...\n];\n```\n\n## Usage\n\n### Simple usage:\nYou can use the type in your forms just like this:\n```php\n\u003c?php\n\nuse Shapecode\\Bundle\\HiddenEntityTypeBundle\\Form\\Type\\HiddenEntityType;\n\n// ...\n$builder-\u003eadd('entity', HiddenEntityType::class, array(\n    'class' =\u003e YourBundleEntity::class\n));\n```\nYou can also use the `HiddenDocumentType::class` type:\n```php\n\u003c?php\n\nuse Shapecode\\Bundle\\HiddenEntityTypeBundle\\Form\\Type\\HiddenDocumentType;\n\n// ...\n$builder-\u003eadd('document', HiddenDocumentType::class, array(\n    'class' =\u003e YourBundleDocument::class\n));\n```\nThere is only one required option \"class\". You must specify entity class in Symfony format that you want to be used in your form.\n\n### Advanced usage:\nYou can use the `HiddenEntityType` or `HiddenDocumentType` type in your forms this way:\n```php\n\u003c?php\n// ...\n$builder-\u003eadd('entity', HiddenEntityType::class, array(\n    'class' =\u003e YourBundleEntity::class, // required\n    'property' =\u003e 'entity_id', // Mapped property name (default is 'id'), not required\n    'multiple' =\u003e false, // support for an array of entities, not required\n    'data' =\u003e $entity, // Field value by default, not required\n    'invalid_message' =\u003e 'The entity does not exist.', // Message that would be shown if no entity found, not required\n));\n```\n\n## Reporting an issue or a feature request\nFeel free to report any issues. If you have an idea to make it better go ahead and modify and submit pull requests.\n\n### Original\n\nThe orginal source is from Glifery (https://github.com/Glifery/EntityHiddenTypeBundle) but seems not to be supported anymore.\n","funding_links":["https://github.com/sponsors/nicklog","https://liberapay.com/nicklog","http://paypal.me/nloges"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Fhidden-entity-type-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapecode%2Fhidden-entity-type-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Fhidden-entity-type-bundle/lists"}