{"id":23427112,"url":"https://github.com/bwinkers/nugget","last_synced_at":"2025-06-28T18:07:09.774Z","repository":{"id":56940267,"uuid":"42565030","full_name":"bwinkers/nugget","owner":"bwinkers","description":"A PHP7 Mongo composable, rule based object validation and processing module","archived":false,"fork":false,"pushed_at":"2018-03-13T06:04:44.000Z","size":971,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-16T06:49:44.526Z","etag":null,"topics":["activerules","json-schema","sharedchain"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwinkers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-16T04:44:57.000Z","updated_at":"2018-04-15T17:19:46.000Z","dependencies_parsed_at":"2022-08-21T06:20:51.373Z","dependency_job_id":null,"html_url":"https://github.com/bwinkers/nugget","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bwinkers/nugget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwinkers%2Fnugget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwinkers%2Fnugget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwinkers%2Fnugget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwinkers%2Fnugget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwinkers","download_url":"https://codeload.github.com/bwinkers/nugget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwinkers%2Fnugget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262210085,"owners_count":23275488,"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":["activerules","json-schema","sharedchain"],"created_at":"2024-12-23T06:17:08.443Z","updated_at":"2025-06-28T18:07:09.759Z","avatar_url":"https://github.com/bwinkers.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nugget\n[![Coverage Status](https://coveralls.io/repos/github/bwinkers/nugget/badge.svg?branch=master)](https://coveralls.io/github/bwinkers/nugget?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/aa0a4d97bb3af8d0a7a6/maintainability)](https://codeclimate.com/github/bwinkers/nugget/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/aa0a4d97bb3af8d0a7a6/test_coverage)](https://codeclimate.com/github/bwinkers/nugget/test_coverage)\n\nA PHP7 library for defining, validating and processing JSON business objects.\n\nThe ActiveRules Nugget Schema treats all data as `nuggets`.\nThese `nuggets` can be defined, and related using JSON files.\nRules can then be applied to any changes to an object.\n\nThe resulting schema will be moving to dataencyclopedia.com.\n\n## Testing \n\n## Local only tests (run by Travis CI)\n\n```php vendor/bin/phpunit```\n\n## Using remote schema (broken on Travis CI)\n\n```php vendor/bin/phpunit tests/Activerules/Nugget/NuggetTest-Dev.php --testdox```\n\n## Generate Open API schema objects\n\nActiveRules object definitions are converted to Open API schema objects composed of property definitions.\n\n### Schema from object definitions\n\n```\nphp src/bin/schemaFromObject.php -p \"./properties\" -o \"./objects\" -s \"./t2\" \n```\n\n```\nphp src/bin/o2s.php -p \"./properties\" -s \"./schema\" -o \"./objects\" -d \"./schemadoc\"\n```\n\n```\nphp src/bin/refsToURLs.php -s \"./schema\" -u \"https://schmema.izzup.com\" -o \"./objects-izzup\"\n```\n\n```\nphp src/bin/readPropertiesFromGoogle.php -s \"1NeU79bJ-Zic-fwKK2PPuxntNXnbkyMKf6ZTIUHp1n4s\" -c ~/.google/izzup-client_secret.json -p \"./properties\"\n```\n\n### Update schema\n```\nphp src/bin/convertSchemaRefs.php -s \"./schema\" -r \"file://./\" -o \"./objects-local\" -t \"#/components/schema/\"\n```\n\n```\nphp src/bin/convertSchemaRefs.php -s \"./schema\" -r \"https://schema.izzup.com\" -o \"./objects-izzup\" -t \"#/components/schema/\" \n```\n\n## References\nJSON References ($ref): [https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03)\n\nJSON Schema: [http://json-schema.org/](http://json-schema.org/)\n\nSchemas: [http://schema.org/](http://schema.org/)\n\n## Sponsored By:\n[UltriNet](http://www.ultri.net)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwinkers%2Fnugget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwinkers%2Fnugget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwinkers%2Fnugget/lists"}