{"id":26107153,"url":"https://github.com/jroedel/laminas-sion-model","last_synced_at":"2026-04-17T14:34:18.642Z","repository":{"id":45479686,"uuid":"75504284","full_name":"jroedel/laminas-sion-model","owner":"jroedel","description":"A simple array-based ORM platform for Laminas. Includes many filters and view helpers.","archived":false,"fork":false,"pushed_at":"2022-12-06T07:35:50.000Z","size":809,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"1.0.x","last_synced_at":"2025-03-09T22:52:16.246Z","etag":null,"topics":["database","laminas","laminas-mvc","orm"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jroedel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-03T22:35:44.000Z","updated_at":"2025-01-31T21:22:56.000Z","dependencies_parsed_at":"2022-07-15T03:30:42.070Z","dependency_job_id":null,"html_url":"https://github.com/jroedel/laminas-sion-model","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jroedel/laminas-sion-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jroedel%2Flaminas-sion-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jroedel%2Flaminas-sion-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jroedel%2Flaminas-sion-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jroedel%2Flaminas-sion-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jroedel","download_url":"https://codeload.github.com/jroedel/laminas-sion-model/tar.gz/refs/heads/1.0.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jroedel%2Flaminas-sion-model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31933311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"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":["database","laminas","laminas-mvc","orm"],"created_at":"2025-03-09T22:52:19.297Z","updated_at":"2026-04-17T14:34:18.626Z","avatar_url":"https://github.com/jroedel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sion Model\r\n\r\nAn array-based ORM platform for Laminas. Includes many filters and view helpers. Requires jtranslate and juser.\r\n\r\n## Installation\r\n\r\n```bash\r\ncomposer require jroedel/laminas-sion-model\r\n```\r\n\r\n## Features\r\n\r\n* Simple array-based ORM\r\n* Automatic caching\r\n* Automatic logging\r\n* Automatic reporting on who changed what, when.\r\n* Integrated mailing support\r\n* Integrated data problem management\r\n\r\n### Entities\r\n\r\nEntities are defined in configuration under the `['sion_model']['entities']` key. You define a\r\nmapping of the entity field names to database column names, tell the ORM what the table is called \r\nand how these entities are integrated into the router tree.\r\n\r\n### Getting started\r\n\r\nHow to implement a Book database:\r\n\r\n1. Extend the SionTable class, and create a ServiceFactory to build it.\r\n\r\n2. Define your entity configuration in the `module.config.php` referencing the example file `sionmodel.global.php.dist` \r\nand properties from `SionModel\\Entity\\Entity`.\r\n\r\n3. Implement the `processBookRow` function and register the row processor function in the config. \r\n\r\n4. Create a BookForm extending the `SionForm` class. \r\n\r\n5. Extend the SionController class\r\n\r\n## Data problem management\r\n\r\nWith data problem management you create two classes to detect problems with a certain \r\nentity type. The user can choose to ignore a particular error. A pre-made GUI is \r\nincluded which shows all the collected problems. \r\n\r\n### Steps to use:\r\n\r\n1. Define 1 or more problems under the `['sion_model']['problem_specifications']` config key in `module.config.php`:```\r\n\r\n\t'sion_model' =\u003e [\r\n\t\t'problem_providers' =\u003e [\r\n\t        'Project\\Model\\ProjectTable',\r\n\t    ],\r\n\t\t'problem_specifications' =\u003e [\r\n\t        'person-no-email' =\u003e [\r\n\t            'entity'            =\u003e 'person',\r\n\t            'defaultSeverity'   =\u003e EntityProblem::SEVERITY_ERROR,\r\n\t            'text'              =\u003e 'No email associated with person',\r\n\t    \t],\r\n\t\t],\r\n\t],\r\n2. Implement the `ProblemProviderInterface` in the `Project\\Model\\ProjectTable` class. \r\n\r\n## Coming soon\r\n\r\n* Support entity-level ACL rules","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjroedel%2Flaminas-sion-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjroedel%2Flaminas-sion-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjroedel%2Flaminas-sion-model/lists"}