{"id":32347444,"url":"https://github.com/pascalkleindienst/formlistgenerator","last_synced_at":"2025-10-24T06:53:09.386Z","repository":{"id":57036109,"uuid":"94441385","full_name":"PascalKleindienst/FormListGenerator","owner":"PascalKleindienst","description":"FormListGenerator is a small library to easily display data as a table-list or a form. Its main application area is in admin/backend applications.","archived":false,"fork":false,"pushed_at":"2017-08-17T09:27:03.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T04:27:33.594Z","etag":null,"topics":["backend","composer-package","php-library"],"latest_commit_sha":null,"homepage":"","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/PascalKleindienst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-15T13:19:53.000Z","updated_at":"2017-07-18T06:52:15.000Z","dependencies_parsed_at":"2022-08-24T14:40:16.199Z","dependency_job_id":null,"html_url":"https://github.com/PascalKleindienst/FormListGenerator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/PascalKleindienst/FormListGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PascalKleindienst%2FFormListGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PascalKleindienst%2FFormListGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PascalKleindienst%2FFormListGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PascalKleindienst%2FFormListGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PascalKleindienst","download_url":"https://codeload.github.com/PascalKleindienst/FormListGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PascalKleindienst%2FFormListGenerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280755319,"owners_count":26385096,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["backend","composer-package","php-library"],"created_at":"2025-10-24T06:53:04.310Z","updated_at":"2025-10-24T06:53:09.379Z","avatar_url":"https://github.com/PascalKleindienst.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FormListGenerator\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Code Style][ico-code-style]][link-code-style]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nFormListGenerator is a small library to easily display data as a table-list or a form. Its main application area is in admin/backend applications.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require pascalkleindienst/form-list-generator\n```\n\n## Usage\n\n``` php\nuse PascalKleindienst\\FormListGenerator\\Generators\\ListGenerator;\nuse PascalKleindienst\\FormListGenerator\\Generators\\FormGenerator;\nuse PascalKleindienst\\FormListGenerator\\Support\\Config;\n\n# set the root path of the application and optionally a baseUrl\nConfig::set([\n    'root'    =\u003e dirname(__FILE__),\n    'baseUrl' =\u003e 'http://example.com'\n]);\n\n// Init Generators with yaml config\n$list = new ListGenerator('list.yaml'); \n$form = new FormGenerator('form.yaml');\n\n// Alternatively, we can use the load method (useful when you put the generator class in a container)\n$list = new ListGenerator(); \n$form = new FormGenerator();\n$list = $list-\u003eload('list.yaml');\n$form = $form-\u003eload('form.yaml');\n\n// Render List\n# some example date, usually fetched from your DB\n$listData = [\n    [\n        'id'         =\u003e 1,\n        'full_name'  =\u003e 'John Doe',\n        'age'        =\u003e 42,\n        'created_at' =\u003e time(),\n        'content'    =\u003e 'lorem ipsum',\n        'recursive'  =\u003e [ # accessed via dot notation in yaml =\u003e recursive.test or recursive.foo\n            'test' =\u003e 'Recursive Testing',\n            'foo'  =\u003e 'Foo'\n        ]\n    ],\n    [\n        'id'         =\u003e 2,\n        'full_name'  =\u003e 'John Doe',\n        'age'        =\u003e 42,\n        'created_at' =\u003e time(),\n        'content'    =\u003e 'lorem ipsum',\n        'recursive' [ # accessed via dot notation in yaml =\u003e recursive.test or recursive.foo\n            'test' =\u003e 'Recursive Testing',\n            'foo'  =\u003e 'Foo'\n        ]\n    ]\n];\n$list-\u003erender($listData);\n\n// Render the form\n$formData = [\n    'id'         =\u003e 1,\n    'full_name'  =\u003e 'John Doe',\n    'age'        =\u003e 42,\n    'created_at' =\u003e time(),\n    'content'    =\u003e 'lorem ipsum',\n    'recursive' [ # accessed via dot notation in yaml =\u003e recursive.test or recursive.foo\n        'test' =\u003e 'Recursive Testing',\n        'foo'  =\u003e 'Foo'\n     ]\n];\n$form-\u003erender($formData);\n```\n\n### Configuration\nSee [docs/form.md](docs/form.md) and [docs/list.md](docs/list.md)\n\n### Localization\nYou're also able to translate your message to another language. The only thing one must do is to set the attribute translator as a callable that will handle the translation:\n```php\n$form-\u003esetTranslator('gettext');\n$list-\u003esetTranslator('gettext');\n```\nThe example above uses `gettext()` but you can use any other callable value, like `[$translator, 'trans']` or `your_custom_function()`.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email mail@pascalkleindienst.de instead of using the issue tracker.\n\n## Credits\n\n- [Pascal Kleindienst][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/pascalkleindienst/form-list-generator.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/PascalKleindienst/FormListGenerator/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/PascalKleindienst/FormListGenerator.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/PascalKleindienst/FormListGenerator.svg?style=flat-square\n[ico-code-style]: https://styleci.io/repos/94441385/shield?branch=master\n[ico-downloads]: https://img.shields.io/packagist/dt/pascalkleindienst/form-list-generator.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/pascalkleindienst/form-list-generator\n[link-travis]: https://travis-ci.org/PascalKleindienst/FormListGenerator\n[link-scrutinizer]: https://scrutinizer-ci.com/g/PascalKleindienst/FormListGenerator/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/PascalKleindienst/FormListGenerator\n[link-downloads]: https://packagist.org/packages/pascalkleindienst/form-list-generator\n[link-author]: https://github.com/PascalKleindienst\n[link-contributors]: ../../contributors\n[link-code-style]: https://styleci.io/repos/94441385","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalkleindienst%2Fformlistgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascalkleindienst%2Fformlistgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascalkleindienst%2Fformlistgenerator/lists"}