{"id":21314463,"url":"https://github.com/polyconseil/tefps-clients-php","last_synced_at":"2026-01-01T22:02:29.694Z","repository":{"id":57066392,"uuid":"108535438","full_name":"Polyconseil/tefps-clients-php","owner":"Polyconseil","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-02T11:04:19.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-02-22T23:46:22.573Z","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/Polyconseil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-10-27T11:00:25.000Z","updated_at":"2021-11-09T11:26:33.000Z","dependencies_parsed_at":"2022-08-24T07:50:41.874Z","dependency_job_id":null,"html_url":"https://github.com/Polyconseil/tefps-clients-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Ftefps-clients-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Ftefps-clients-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Ftefps-clients-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polyconseil%2Ftefps-clients-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polyconseil","download_url":"https://codeload.github.com/Polyconseil/tefps-clients-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790999,"owners_count":20348385,"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-21T18:13:09.476Z","updated_at":"2026-01-01T22:02:24.637Z","avatar_url":"https://github.com/Polyconseil.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tefps-clients-php\n\nInstallation\n============\n\nStep 1: Download the Bundle\n---------------------------\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```console\n$ composer require tefps/clients-bundle \"~1\"\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\nStep 2: Enable the Bundle\n-------------------------\n\nThen, enable the bundle by adding it to the list of registered bundles\nin the `app/AppKernel.php` file of your project:\n\n```php\n\u003c?php\n// app/AppKernel.php\n\n// ...\nclass AppKernel extends Kernel\n{\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...\n            new Tefps\\TefpsClientsBundle\\TefpsClientsBundle(),\n        );\n\n        // ...\n    }\n\n    // ...\n}\n```\n\n:warning: Be careful, you should use the same OAuth2HttpClient instance for all your clients.\n\nTefpsTvClient - Usage\n=====================\n\n```php\n\u003c?php\n\nuse Tefps\\TefpsClientsBundle\\Tv\\TefpsTvClient;\nuse Tefps\\TefpsClientsBundle\\Auth\\OAuth2HttpClient;\n\n// ...\n\n$client = new TefpsTvClient(new OAuth2HttpClient(\n        'http://tefps-directory-host:port',\n        'clientId',\n        'clientSecret'),\n        'http://tefps-tv-host:port'\n      );\n\n$tv = $client-\u003efetchTv(\"cityId\", \"tvId\");\n\n\n```\n\nTefpsSubscriberClient - Usage\n=====================\n\n```php\n\u003c?php\n\nuse Tefps\\TefpsClientsBundle\\Tv\\TefpsSubscriberClient;\nuse Tefps\\TefpsClientsBundle\\Auth\\OAuth2HttpClient;\n\n// ...\n\n$client = new TefpsSubscriberClient(new OAuth2HttpClient(\n        'http://tefps-directory-host:port',\n        'clientId',\n        'clientSecret'),\n        'http://tefps-subscriber-host:port'\n      );\n\n$subscriber = $client-\u003efetchSubscriber(\"cityId\", \"subscriberId\");\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyconseil%2Ftefps-clients-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyconseil%2Ftefps-clients-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyconseil%2Ftefps-clients-php/lists"}