{"id":20463403,"url":"https://github.com/atiksoftware/php-class-schema-merger","last_synced_at":"2026-04-18T12:36:12.454Z","repository":{"id":62489189,"uuid":"147439762","full_name":"atiksoftware/php-class-schema-merger","owner":"atiksoftware","description":"PHP array migrate,replace or fix with schema and with default data","archived":false,"fork":false,"pushed_at":"2018-09-05T01:11:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T05:44:15.549Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atiksoftware.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}},"created_at":"2018-09-05T01:06:32.000Z","updated_at":"2018-09-05T01:09:37.000Z","dependencies_parsed_at":"2022-11-02T10:47:31.383Z","dependency_job_id":null,"html_url":"https://github.com/atiksoftware/php-class-schema-merger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/atiksoftware/php-class-schema-merger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-class-schema-merger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-class-schema-merger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-class-schema-merger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-class-schema-merger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atiksoftware","download_url":"https://codeload.github.com/atiksoftware/php-class-schema-merger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atiksoftware%2Fphp-class-schema-merger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":"2024-11-15T13:10:59.564Z","updated_at":"2026-04-18T12:36:12.414Z","avatar_url":"https://github.com/atiksoftware.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Array Merger with Schema\nPHP array migrate,replace or fix with schema and with default data\n\n----------\n## Installation\n\n### Using Composer\n\n```sh\ncomposer require atiksoftware/php-class-schema-merger\n```\n\n```php\nrequire __DIR__.'/../vendor/autoload.php';\n\nuse \\Atiksoftware\\Schema\\Merger;\n$schemaMerger = new Merger();\n```\n#### _Example_\n```php\n    $schemaMerger-\u003esetSchema([\n        \"_id\" =\u003e [\n            \"_type\"    =\u003e \"string\",\n            \"_default\" =\u003e \"5f5e100\"\n        ],\n        \"name\" =\u003e [\n            \"_type\"    =\u003e \"string\",\n            \"_default\" =\u003e \"Yeni başlık\",\n            \"_format\"  =\u003e \"fullname\"\n        ],\n        \"title\" =\u003e [\n            \"_type\"    =\u003e \"array\",\n            \"TR\" =\u003e [\n                \"_type\"    =\u003e \"string\",\n                \"_default\" =\u003e \"Türkçe Başlık\",\n                \"_format\"  =\u003e \"upfirst\"\n            ],\n            \"EN\" =\u003e [\n                \"_type\"    =\u003e \"string\",\n                \"_default\" =\u003e \"English Title\"\n            ],\n        ], \n        \"tags\" =\u003e [\n            \"_type\"    =\u003e \"array\",\n            \"_default\" =\u003e [ ],\n        ],\n        \"date\" =\u003e [\n            \"_type\"    =\u003e \"array\",\n            \"edit\" =\u003e [\n                \"_type\"    =\u003e \"integer\",\n                \"_default\" =\u003e time()\n            ]\n        ],\n        \"admin\" =\u003e [\n            \"_type\"    =\u003e \"boolean\",\n            \"_default\" =\u003e false\n        ],\n        \"age\" =\u003e [\n            \"_type\"    =\u003e \"int\",\n            \"_default\" =\u003e 15,\n            \"_min\"     =\u003e 5,\n            \"_max\"     =\u003e 35,\n        ],\n    ]);\n\n    $item = [\n        \"name\"  =\u003e \"Mansur atik\",\n        \"title\" =\u003e [\n            \"TR\" =\u003e \"Nasıl\"\n        ],\n        \"admin\" =\u003e 1,\n        \"age\"   =\u003e 434\n    ];\n\n    $result = $schemaMerger-\u003eMigrate($item);\n    var_dump($result);\n```\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatiksoftware%2Fphp-class-schema-merger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatiksoftware%2Fphp-class-schema-merger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatiksoftware%2Fphp-class-schema-merger/lists"}