{"id":15490108,"url":"https://github.com/tmilos/scim-schema","last_synced_at":"2026-03-03T13:37:05.058Z","repository":{"id":47168516,"uuid":"79920660","full_name":"tmilos/scim-schema","owner":"tmilos","description":"SCIM schema PHP library","archived":false,"fork":false,"pushed_at":"2023-10-27T16:07:43.000Z","size":93,"stargazers_count":14,"open_issues_count":7,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-24T23:45:15.520Z","etag":null,"topics":["php","scim","scim-2","scim-schema"],"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/tmilos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-24T14:49:02.000Z","updated_at":"2023-11-16T09:41:53.000Z","dependencies_parsed_at":"2024-06-18T15:29:50.763Z","dependency_job_id":"fbf29ea7-ff3d-4186-b96a-d774f71f1412","html_url":"https://github.com/tmilos/scim-schema","commit_stats":{"total_commits":15,"total_committers":5,"mean_commits":3.0,"dds":0.2666666666666667,"last_synced_commit":"5335eddb5f31d82366323403c4d7d8efe1cf8854"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tmilos/scim-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmilos%2Fscim-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmilos%2Fscim-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmilos%2Fscim-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmilos%2Fscim-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmilos","download_url":"https://codeload.github.com/tmilos/scim-schema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmilos%2Fscim-schema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30046762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T10:53:31.691Z","status":"ssl_error","status_checked_at":"2026-03-03T10:53:22.041Z","response_time":61,"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":["php","scim","scim-2","scim-schema"],"created_at":"2024-10-02T07:09:21.049Z","updated_at":"2026-03-03T13:37:05.029Z","avatar_url":"https://github.com/tmilos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scim Schema\n\nSCIM schema PHP library with support for both v1 and v2.\n\n\u003e **Note:** This library is still work in progress, and you are welcome to help and contribute\n\n\u003e It was made by the specs from [SimpleCloud](http://www.simplecloud.info/) and by the example documents generated by\n[PowerDMS/Owin.Scim](https://github.com/PowerDMS/Owin.Scim)\n\n\u003e Do not miss [SCIM Filter Parser](https://github.com/tmilos/scim-filter-parser) !\n\n[![Author](http://img.shields.io/badge/author-@tmilos-blue.svg?style=flat-square)](https://twitter.com/tmilos77)\n[![Build Status](https://travis-ci.org/tmilos/scim-schema.svg?branch=master)](https://travis-ci.org/tmilos/scim-schema)\n[![Coverage Status](https://coveralls.io/repos/github/tmilos/scim-schema/badge.svg?branch=master)](https://coveralls.io/github/tmilos/scim-schema?branch=master)\n[![Quality Score](https://img.shields.io/scrutinizer/g/tmilos/scim-schema.svg?style=flat-square)](https://scrutinizer-ci.com/g/tmilos/scim-schema)\n[![License](https://img.shields.io/packagist/l/tmilos/scim-schema.svg)](https://packagist.org/packages/tmilos/scim-schema)\n[![Packagist Version](https://img.shields.io/packagist/v/tmilos/scim-schema.svg?style=flat-square)](https://packagist.org/packages/tmilos/scim-schema)\n\n# Install\n\nInstall Scim Schema using composer:\n\n```bash\ncomposer require tmilos/scim-schema\n```\n\n# Usage\n\n### Schema\n\nBuild default schema:\n\n```php\n$schemaBuilder = new SchemaBuilderV2(); // or SchemaBuilderV1\n\n$groupSchema = $schemaBuilder-\u003egetGroup();\n$userSchema  = $schemaBuilder-\u003egetUser();\n$enterpriseUserSchema = $schemaBuilder-\u003egetEnterpriseUser();\n$schemaSchema = $schemaBuilder-\u003egetSchema();\n$serviceProviderConfigSchema = $schemaBuilder-\u003egetServiceProviderConfig();\n$resourceTypeSchema = $schemaBuilder-\u003egetResourceType();\n```\n\nOr build your own custom schema:\n\n```php\n$schema = new Schema();\n\n$schema-\u003esetName('CustomSchema');\n\n$schema-\u003eaddAttribute(\n    AttributeBuilder::create('name', ScimConstants::ATTRIBUTE_TYPE_STRING, 'Name of the object')\n        -\u003esetMutability(false)\n        -\u003egetAttribute()\n);\n```\n\nAnd serialize the scim schema object\n\n```php\n$schema = (new SchemaBuilderV2())-\u003egetUser();\n\n$schema-\u003eserializeObject();\n```\n\n### Schema validation\n\nAn object can be validated against a schema:\n\n```php\n/** @var array $object */\n$object = getTheObjectAsArray();\n\n$validator = new SchemaValidator();\n$objectSchema = getTheSchema();\n$schemaExtensions = getSchemaExtensions();\n\n$validationResult = $validator-\u003evalidate(\n    $object,\n    $objectSchema,\n    $schemaExtensions\n);\n\nif (!$validationResult-\u003egetErrors()) {\n    // cool!\n} else {\n    print implode(\"\\n\", $validationResult-\u003egetErrorsAsStrings());\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmilos%2Fscim-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmilos%2Fscim-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmilos%2Fscim-schema/lists"}