{"id":18610572,"url":"https://github.com/ixnode/php-json-schema-validator","last_synced_at":"2025-11-02T21:30:24.729Z","repository":{"id":65147991,"uuid":"583988424","full_name":"ixnode/php-json-schema-validator","owner":"ixnode","description":"PHP Json Schema Validator","archived":false,"fork":false,"pushed_at":"2024-12-07T22:04:30.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T01:41:39.284Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ixnode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-12-31T19:36:13.000Z","updated_at":"2024-12-07T22:04:30.000Z","dependencies_parsed_at":"2024-11-07T03:11:12.649Z","dependency_job_id":"4030eafd-e389-4fb2-89e2-20aee8e0256f","html_url":"https://github.com/ixnode/php-json-schema-validator","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"a31c213c06e3ea0b64ba66c51c2e95a23b94f77f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-json-schema-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-json-schema-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-json-schema-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixnode%2Fphp-json-schema-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixnode","download_url":"https://codeload.github.com/ixnode/php-json-schema-validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400606,"owners_count":19632051,"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":[],"created_at":"2024-11-07T03:11:06.029Z","updated_at":"2025-11-02T21:30:24.679Z","avatar_url":"https://github.com/ixnode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Json Schema Validator\n\n[![Release](https://img.shields.io/github/v/release/ixnode/php-json-schema-validator)](https://github.com/ixnode/php-json-schema-validator/releases)\n[![](https://img.shields.io/github/release-date/ixnode/php-json-schema-validator)](https://github.com/ixnode/php-json-schema-validator/releases)\n![](https://img.shields.io/github/repo-size/ixnode/php-json-schema-validator.svg)\n[![PHP](https://img.shields.io/badge/PHP-^8.2-777bb3.svg?logo=php\u0026logoColor=white\u0026labelColor=555555\u0026style=flat)](https://www.php.net/supported-versions.php)\n[![PHPStan](https://img.shields.io/badge/PHPStan-Level%20Max-brightgreen.svg?style=flat)](https://phpstan.org/user-guide/rule-levels)\n[![PHPUnit](https://img.shields.io/badge/PHPUnit-Unit%20Tests-6b9bd2.svg?style=flat)](https://phpunit.de)\n[![PHPCS](https://img.shields.io/badge/PHPCS-PSR12-brightgreen.svg?style=flat)](https://www.php-fig.org/psr/psr-12/)\n[![PHPMD](https://img.shields.io/badge/PHPMD-ALL-364a83.svg?style=flat)](https://github.com/phpmd/phpmd)\n[![Rector - Instant Upgrades and Automated Refactoring](https://img.shields.io/badge/Rector-PHP%208.2-73a165.svg?style=flat)](https://github.com/rectorphp/rector)\n[![LICENSE](https://img.shields.io/github/license/ixnode/php-json-schema-validator)](https://github.com/ixnode/php-json-schema-validator/blob/master/LICENSE)\n\n\u003e An easy-to-use PHP Json Schema Validator on top of [opis/json-schema](https://github.com/opis/json-schema).\n\n## 1. Usage\n\n```php\nuse Ixnode\\PhpJsonSchemaValidator\\Validator;\n```\n\n```php\n$data = '[1, 2, 3]';\n\n$schema = [\n    'type' =\u003e 'object'\n];\n\n$validator = new Validator(new Json($data), new Json($schema));\n\n$valid = $validator-\u003evalidate();\n// (bool) true\n```\n\n## 2. Installation\n\n```bash\ncomposer require ixnode/php-json-schema-validator\n```\n\n```bash\nvendor/bin/php-json-schema-validator -V\n```\n\n```bash\nphp-json-schema-validator 0.1.0 (12-31-2022 15:51:08) - Björn Hempel \u003cbjoern@hempel.li\u003e\n```\n\n## 3. Library development\n\n```bash\ngit clone git@github.com:ixnode/php-json-schema-validator.git \u0026\u0026 cd php-json-schema-validator\n```\n\n```bash\ncomposer install\n```\n\n```bash\ncomposer test\n```\n\n## 4. License\n\nThis tool is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-json-schema-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixnode%2Fphp-json-schema-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixnode%2Fphp-json-schema-validator/lists"}