{"id":16193209,"url":"https://github.com/koriym/koriym.datafile","last_synced_at":"2026-01-25T17:02:52.890Z","repository":{"id":57008573,"uuid":"376427580","full_name":"koriym/Koriym.DataFile","owner":"koriym","description":"Load XML file with XSD validation","archived":false,"fork":false,"pushed_at":"2024-06-09T05:43:43.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-27T11:36:37.715Z","etag":null,"topics":["xml","xsd"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/koriym/data-file","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/koriym.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-13T03:20:44.000Z","updated_at":"2024-06-09T05:14:05.000Z","dependencies_parsed_at":"2024-06-01T20:45:44.339Z","dependency_job_id":"3f5c0374-fc15-451b-b4a6-bfced81a1e39","html_url":"https://github.com/koriym/Koriym.DataFile","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"60ba26db5442f6fcc2d5a56ebf39f90e3bc14cee"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/koriym/Koriym.DataFile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.DataFile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.DataFile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.DataFile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.DataFile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koriym","download_url":"https://codeload.github.com/koriym/Koriym.DataFile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koriym%2FKoriym.DataFile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["xml","xsd"],"created_at":"2024-10-10T08:14:20.732Z","updated_at":"2026-01-25T17:02:52.875Z","avatar_url":"https://github.com/koriym.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koriym.DataFile\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/koriym/Koriym.DataFile/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/koriym/Koriym.DataFile/?branch=master)\n[![Type Coverage](https://shepherd.dev/github/bearsunday/BEAR.Package/coverage.svg)](https://shepherd.dev/github/bearsunday/BEAR.Package)\n[![codecov](https://codecov.io/gh/koriym/Koriym.DataFile/graph/badge.svg?token=GNEC7OBLN9)](https://codecov.io/gh/koriym/Koriym.DataFile)\n[![Continuous Integration](https://github.com/koriym/Koriym.DataFile/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/koriym/Koriym.DataFile/actions/workflows/continuous-integration.yml)\n\n## XML Config Loader\n\nThis library helps you easily validate and load XML configuration files using XSD schemas. It's designed to ensure the integrity and consistency of your configuration data with minimal effort. Additionally, it can be used to load and validate general XML files.\n\n## Installation\n\nTo get started, install the required package using Composer:\n\n```bash\ncomposer require koriym/data-file\n```\n\nValidate and load the XML file.\n\n## Usage\n\n### Simple XML Load with Validation\n\nLoad and validate your XML files with just a few lines of code:\n\n```php\nuse Koriym\\DataFile\\XmlLoad;\n\n$xml = (new XmlLoad())('/path/to/xml', '/path/to/xsd');\nassert($xml instanceof SimpleXMLElement);\n```\n\n### Config XML Load\n\nEasily load configuration files (`config.xml` or `config.xml.dist`) from the specified directory. If both files are present, config.xml is loaded first:\n\n```php\nuse Koriym\\DataFile\\XmlConfigLoad;\n\n$xml = (new XmlConfigLoad('confilg.xml'))('/path/to/config_dir', '/path/to/xsd');\nassert($xml instanceof SimpleXMLElement);\n```\n\nUsing `.dist` files allows you to maintain default settings in your repository while keeping local configurations separate.\n\n### Notes\n\n- The XSD schema ensures your XML files adhere to the defined structure and content standards.\n- `.dist` files are useful for providing default configurations that can be overridden by local settings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoriym%2Fkoriym.datafile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoriym%2Fkoriym.datafile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoriym%2Fkoriym.datafile/lists"}