{"id":33974264,"url":"https://github.com/phramework/validate-filler","last_synced_at":"2025-12-13T01:40:42.044Z","repository":{"id":15391660,"uuid":"53780634","full_name":"phramework/validate-filler","owner":"phramework","description":"Fill forms generated by validate (JSON schema) specification","archived":false,"fork":false,"pushed_at":"2022-05-25T07:19:55.000Z","size":57,"stargazers_count":2,"open_issues_count":7,"forks_count":2,"subscribers_count":6,"default_branch":"1.x","last_synced_at":"2025-08-06T12:13:42.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phramework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-13T11:06:01.000Z","updated_at":"2022-05-13T12:20:57.000Z","dependencies_parsed_at":"2022-08-09T03:30:19.223Z","dependency_job_id":null,"html_url":"https://github.com/phramework/validate-filler","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/phramework/validate-filler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fvalidate-filler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fvalidate-filler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fvalidate-filler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fvalidate-filler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phramework","download_url":"https://codeload.github.com/phramework/validate-filler/tar.gz/refs/heads/1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fvalidate-filler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27697876,"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-12-12T02:00:06.775Z","response_time":129,"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":[],"created_at":"2025-12-13T01:40:39.104Z","updated_at":"2025-12-13T01:40:42.028Z","avatar_url":"https://github.com/phramework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phramework/validate-filler\n\u003e  Fill forms generated by validate (JSON schema) specification \n\n[![Build Status](https://travis-ci.org/phramework/validate-filler.svg?branch=1.x)](https://travis-ci.org/phramework/validate-filler) \n[![Coverage Status](https://coveralls.io/repos/github/phramework/validate-filler/badge.svg?branch=1.x)](https://coveralls.io/github/phramework/validate-filler?branch=1.x)\n\n## Usage\nRequire package using composer\n\n```bash\ncomposer require phramework/validate-filler\n```\n\n### Example parsing schema from json\n```php\n\u003c?php\n$validator = \\Phramework\\Validate\\ObjectValidator::createFromJSON('{\n  \"type\": \"object\",\n  \"properties\": {\n    \"a\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"1\",\n        \"2\",\n        \"3\"\n      ]\n    },\n    \"b\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"i\",\n        \"ii\",\n        \"iii\"\n      ]\n    }\n  },\n  \"required\": [\"a\"]\n}');\n\n$value = (new \\Phramework\\ValidateFiller\\Filler())\n    -\u003efill($validator);\n\nvar_dump($value);\n```\n\nSample outputs:\n\n```php\nclass stdClass#1381 (1) {\n  public $a =\u003e\n  string(1) \"2\"\n}\n```\n\n```php\nclass stdClass#1381 (2) {\n  public $a =\u003e\n  string(1) \"3\"\n  public $b =\u003e\n  string(2) \"ii\"\n}\n```\n\n- will always include property `\"a\"` since it's required\n- some times will include property `\"b\"` *(probabilistic)*\n\n### Example using ObjectValidator constructor\n```php\n\u003c?php\n$validator = new \\Phramework\\Validate\\ObjectValidator(\n    (object) [\n        'a' =\u003e new \\Phramework\\Validate\\EnumValidator([\n            '1',\n            '2',\n            '3'\n        ]),\n        'b' =\u003e new \\Phramework\\Validate\\EnumValidator([\n            'i',\n            'ii',\n            'iii'\n        ])\n    ],\n    ['a'],\n    false\n);\n\n$value = (new \\Phramework\\ValidateFiller\\Filler())\n    -\u003efill($validator);\n```\n\n## Development\n### Install dependencies\n\n```bash\ncomposer update\n```\n\n### Test and lint code\n\n```bash\ncomposer test\ncomposer lint\n```\n### Generate documentation\n\n```bash\ncomposer doc\n```\n\n## License\nCopyright 2015-2017 Xenofon Spafaridis\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n```\nhttp://www.apache.org/licenses/LICENSE-2.0\n```\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Fvalidate-filler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphramework%2Fvalidate-filler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Fvalidate-filler/lists"}