{"id":28515940,"url":"https://github.com/thybag/pseudomodel","last_synced_at":"2025-07-05T17:31:01.316Z","repository":{"id":32955951,"uuid":"139889795","full_name":"thybag/PseudoModel","owner":"thybag","description":"PseudoModel is an eloquent-like base model for laravel","archived":false,"fork":false,"pushed_at":"2025-05-30T10:30:29.000Z","size":140,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-09T03:36:15.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/thybag.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-05T19:03:30.000Z","updated_at":"2025-05-30T10:25:23.000Z","dependencies_parsed_at":"2022-07-31T10:38:02.391Z","dependency_job_id":null,"html_url":"https://github.com/thybag/PseudoModel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thybag/PseudoModel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FPseudoModel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FPseudoModel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FPseudoModel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FPseudoModel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thybag","download_url":"https://codeload.github.com/thybag/PseudoModel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thybag%2FPseudoModel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263778345,"owners_count":23509976,"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":"2025-06-09T03:31:19.316Z","updated_at":"2025-07-05T17:31:01.304Z","avatar_url":"https://github.com/thybag.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PseudoModel\n\nPseudoModel is an eloquent-like base model for laravel, aiming to mirror the majority of the laravels basic model functionality. \n\nUsing PseudoModel you can represent and interact with none-database based data in much the same way you would any normal Model, hopefully simplifying the code you need the write. In the past I've used this approach for mapping on to LDAP as well as 3rd party API's.\n\nIn order to provide the standard eloquent eventing behaviors, you can use the `persist` method to define your save logic. The method will change depending on whether the change is create, update or delete.\n\n\n```\n    /**\n     * Persist model changes. Called on save \u0026 delete.\n     *\n     * @param  string $action  create|update|delete\n     * @param  array  $options\n     * @return boolean true|false\n     */\n    protected function persist($action, array $options = []): bool\n    {\n        return true;\n    }\n\n```\n\nThis library is still in progress so not yet recommended for use in production.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthybag%2Fpseudomodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthybag%2Fpseudomodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthybag%2Fpseudomodel/lists"}