{"id":18742643,"url":"https://github.com/symphonycms/remote_datasource","last_synced_at":"2026-03-04T23:32:06.493Z","repository":{"id":2687121,"uuid":"3679855","full_name":"symphonycms/remote_datasource","owner":"symphonycms","description":"An improved datasource to fetch data from TXT, CSV, XML and JSON sources.","archived":false,"fork":false,"pushed_at":"2020-02-21T22:38:21.000Z","size":103,"stargazers_count":13,"open_issues_count":8,"forks_count":9,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-12T21:13:21.252Z","etag":null,"topics":["symphony-cms","symphony-cms-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/symphonycms.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-03-10T14:16:22.000Z","updated_at":"2024-11-24T20:07:49.000Z","dependencies_parsed_at":"2022-08-28T12:22:19.507Z","dependency_job_id":null,"html_url":"https://github.com/symphonycms/remote_datasource","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/symphonycms/remote_datasource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symphonycms%2Fremote_datasource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symphonycms%2Fremote_datasource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symphonycms%2Fremote_datasource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symphonycms%2Fremote_datasource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symphonycms","download_url":"https://codeload.github.com/symphonycms/remote_datasource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symphonycms%2Fremote_datasource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30099390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T23:31:22.529Z","status":"ssl_error","status_checked_at":"2026-03-04T23:31:22.112Z","response_time":59,"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":["symphony-cms","symphony-cms-extension"],"created_at":"2024-11-07T16:08:52.710Z","updated_at":"2026-03-04T23:32:06.473Z","avatar_url":"https://github.com/symphonycms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remote Datasource\n\nThe Remote Datasource allows you to consume XML, JSON, CSV and TXT sources in Symphony. This extension aims to build upon the Dynamic XML datasource functionality provided in Symphony to allow better cache control, the automatic discovery of namespaces and more flexibility.\n\n## Installation\n\n1. Install this extension by copying `/remote_datasource` folder to your `/extensions` folder. Then navigate to the System \u003e Extensions page in the Symphony backend page, select the Remote Datasource extension and then apply the \"Enable/Install\".\n\n2. Create a new Remote Datasource via the Datasource Editor, choosing Remote Datasource from the Source dropdown (it's under __From extensions)\n\n## API\n\nIf you need to add custom php code in your Data Source, there is two methods that you can override in your DataSource sub-class:\n\n````php\n/**\n * This methods allows custom remote data source to set other\n * properties on the HTTP gateway, like Authentication or other\n * parameters. This method is call just before the `exec` method.\n *\n * @param Gateway $gateway\n *  the Gateway object that will be use for the current HTTP request\n *  passed by reference\n */\npublic static function prepareGateway(\u0026$gateway) {}\n\n/**\n * This methods allows custom remote data source to read the returned\n * data before it becomes only available in the XML.\n *\n * @since Remote Datasource 2.0\n * @param string $data\n *  the parsed xml string data returned by the Gateway by reference\n */\npublic function exposeData(\u0026$data) {}\n\n/**\n * This method is called when their is an http error\n * or when content type is unsupported\n *\n * @since Remote Datasource 2.0\n * @param array $info\n *  info of the http request\n */\npublic function httpError(\u0026$info) {}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymphonycms%2Fremote_datasource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymphonycms%2Fremote_datasource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymphonycms%2Fremote_datasource/lists"}