{"id":18929462,"url":"https://github.com/thecodingmachine/database.datasource.datasource-interface","last_synced_at":"2025-04-15T15:31:01.822Z","repository":{"id":5801115,"uuid":"7015751","full_name":"thecodingmachine/database.datasource.datasource-interface","owner":"thecodingmachine","description":"This package only contains basic interfaces for implementing Data sources. Those data sources can be used by a range of objects, including the ExtDataGrid wrapper in Xaja, or other grids...","archived":false,"fork":false,"pushed_at":"2016-06-22T17:17:16.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":8,"default_branch":"4.0","last_synced_at":"2025-04-01T18:02:07.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thecodingmachine.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":"2012-12-05T10:42:45.000Z","updated_at":"2016-01-15T16:13:01.000Z","dependencies_parsed_at":"2022-08-31T01:51:10.333Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/database.datasource.datasource-interface","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/thecodingmachine%2Fdatabase.datasource.datasource-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdatabase.datasource.datasource-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdatabase.datasource.datasource-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fdatabase.datasource.datasource-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/database.datasource.datasource-interface/tar.gz/refs/heads/4.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248236300,"owners_count":21070001,"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-11-08T11:32:52.031Z","updated_at":"2025-04-15T15:31:01.568Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/mouf/database.datasource.datasource-interface/v/stable)](https://packagist.org/packages/mouf/database.datasource.datasource-interface) [![Total Downloads](https://poser.pugx.org/mouf/database.datasource.datasource-interface/downloads)](https://packagist.org/packages/mouf/database.datasource.datasource-interface) [![Latest Unstable Version](https://poser.pugx.org/mouf/database.datasource.datasource-interface/v/unstable)](https://packagist.org/packages/mouf/database.datasource.datasource-interface) [![License](https://poser.pugx.org/mouf/database.datasource.datasource-interface/license)](https://packagist.org/packages/mouf/database.datasource.datasource-interface)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thecodingmachine/database.datasource.datasource-interface/badges/quality-score.png?b=4.0)](https://scrutinizer-ci.com/g/thecodingmachine/database.datasource.datasource-interface/?branch=4.0)\n[![Build Status](https://travis-ci.org/thecodingmachine/database.datasource.datasource-interface.svg?branch=4.0)](https://travis-ci.org/thecodingmachine/database.datasource.datasource-interface)\n[![Coverage Status](https://coveralls.io/repos/thecodingmachine/database.datasource.datasource-interface/badge.svg?branch=4.0\u0026service=github)](https://coveralls.io/github/thecodingmachine/database.datasource.datasource-interface?branch=4.0)\n\nDatasources for Mouf\n====================\n\nYou can find in this package two very useful interfaces:\n\n- `DataSourceInterface`: a DataSource that represents an array of arrays\n- `RowInterface`: a Row that is the representation of a key indexed array.\n\nKnown implementations\n---------------------\n\n- MagicQuery (TODO)\n\nThis packages contains 2 very basic implementations of these interfaces:\n\n- The `Row` class maps a key indexed array into a `RowInterface`\n- The `DataSource` class maps an array of array into a `DataSourceInterface`\n\nModifiers\n---------\n\nThis package comes with a set of utility classes to transform rows and datasources:\n\n- `RowMapper` creates an \"output\" row from an \"input\" row and a set of `Pickers` (implementing the `PickerInterface`)\n- `ArrayMapper` creates an \"output\" datasource from an \"input\" datasource and a set of `Pickers` (implementing the `PickerInterface`)\n\nThis package comes with 2 pickers (implementing the `PickerInterface`):\n\n- `RowPicker`: selects one value in a row\n- `CallbackPicker`: applies a callback function to a row and returns the value of the callback\n\nFinally, the `RowBuilder` class can be used to merge rows, add a row as a key of a row or to add datasources as keys of a row.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fdatabase.datasource.datasource-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fdatabase.datasource.datasource-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fdatabase.datasource.datasource-interface/lists"}