{"id":22699896,"url":"https://github.com/texdc/veritas","last_synced_at":"2025-03-29T19:10:08.657Z","repository":{"id":12812200,"uuid":"15487178","full_name":"texdc/Veritas","owner":"texdc","description":"Identity and Access Control - simplified, but not anemic [WIP]","archived":false,"fork":false,"pushed_at":"2017-07-26T19:24:07.000Z","size":56,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-04T19:46:03.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jitoda/pollme","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/texdc.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":"2013-12-28T04:46:17.000Z","updated_at":"2017-03-31T19:46:05.000Z","dependencies_parsed_at":"2022-08-25T20:11:34.931Z","dependency_job_id":null,"html_url":"https://github.com/texdc/Veritas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texdc%2FVeritas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texdc%2FVeritas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texdc%2FVeritas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/texdc%2FVeritas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/texdc","download_url":"https://codeload.github.com/texdc/Veritas/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230542,"owners_count":20744349,"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-12-10T06:09:13.355Z","updated_at":"2025-03-29T19:10:08.624Z","avatar_url":"https://github.com/texdc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Veritas\n=========\n\nIdentity and Access Control - simplified, but not anemic.\n\n#### WIP: currently experimental only\n\n[![Build Status](https://travis-ci.org/texdc/Veritas.png?branch=develop)](https://travis-ci.org/texdc/Veritas)\n[![Coverage Status](https://coveralls.io/repos/texdc/Veritas/badge.png?branch=develop)](https://coveralls.io/r/texdc/Veritas?branch=develop)\n\nPasswords and Validation\n------------------------\n\n```php\nuse texdc\\veritas\\identity\\CryptoServiceInterface;\nuse texdc\\veritas\\identity\\Password;\n\nclass User\n{\n    /**\n     * @var Password\n     */\n    private $password;\n    \n    // ...\n    \n    public function changePassword(string $aPassword, CryptoServiceInterface $aCryptoService)\n    {\n        $this-\u003esetPassword(new Password($aCryptoService-\u003eencrypt($aPassword)));\n        $this-\u003eeventService-\u003epublish(new PasswordChangedEvent($this-\u003euserId));\n    }\n    \n    protected function setPassword(Password $aPassword)\n    {\n        if ($this-\u003epassword == $aPassword) {\n            throw new IdenticalPasswordException;\n        }\n        $this-\u003epassword = $aPassword;\n    }\n    \n    // ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexdc%2Fveritas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftexdc%2Fveritas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftexdc%2Fveritas/lists"}