{"id":27158884,"url":"https://github.com/activecollab/php-trello","last_synced_at":"2025-04-08T22:39:18.605Z","repository":{"id":56940248,"uuid":"289826494","full_name":"activecollab/php-trello","owner":"activecollab","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-24T12:17:24.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T13:03:28.925Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/activecollab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-24T04:19:54.000Z","updated_at":"2020-10-18T08:29:03.000Z","dependencies_parsed_at":"2022-08-21T01:40:29.042Z","dependency_job_id":null,"html_url":"https://github.com/activecollab/php-trello","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fphp-trello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fphp-trello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fphp-trello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activecollab%2Fphp-trello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activecollab","download_url":"https://codeload.github.com/activecollab/php-trello/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941718,"owners_count":21022035,"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-04-08T22:39:17.938Z","updated_at":"2025-04-08T22:39:18.593Z","avatar_url":"https://github.com/activecollab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-trello\n\nHome page: [http://mattzuba.bitbucket.org/php-trello/](http://mattzuba.bitbucket.org/php-trello/)\n\nphp-trello is a PHP-based wrapper for the Trello API.  It's functionality is very very similar\nto the Trello-made client.js library.  It also supports OAuth authorization.\n\nThis is a basic Trello PHP wrapper that is used very similar to the Trello-made client.js\nlibrary.  The method calls are the same (ie: Trello-\u003epost() or Trello-\u003eboards-\u003eget()).  See\n[https://trello.com/docs/gettingstarted/clientjs.html](https://trello.com/docs/gettingstarted/clientjs.html) for detailed information.\n\nSome differences - you cannot specify callbacks for success or error.  If they're requested\nI may add them in, but it's not really my style to pass callbacks like that around PHP when\nI can simply return the data instead.\n\nTrello::authorize here does OAuth authentication, so you must pass your Secret Key to the\nconstructor or set it after instantiation before calling the authorize method.  Some parameters\nare the same as client.js (name, scope, expiration) and there is one extra (redirect_uri) for\nthe OAuth callback.\n\nGo to [https://trello.com/1/appKey/generate](https://trello.com/1/appKey/generate) to get your API and OAuth keys\n\n## Example Usage\n\n### Basic Usage\n\nRead a public board (Trello)\n\n    :::php\n        \u003c?php\n        $key = 'yourkey';\n        $trello = new \\Trello\\Trello($key);\n        var_dump($trello-\u003eboards-\u003eget('4d5ea62fd76aa1136000000c'));\n\nPre-existing key/token combo and read your boards\n\n    :::php\n        \u003c?php\n        $key = 'yourkey';\n        $token = 'yourjavascripttoken';\n        $trello = new \\Trello\\Trello($key, null, $token);\n        var_dump($trello-\u003emembers-\u003eget('my/boards')));\n\n### OAuth Usage\n\nAuthorize and get your boards\n\n    :::php\n        \u003c?php\n        $key = 'yourkey';\n        $secret = 'yoursecret';\n        $trello = new \\Trello\\Trello($key, $secret);\n        $trello-\u003eauthorize(array(\n            'expiration' =\u003e '1hour',\n            'scope' =\u003e array(\n                'read' =\u003e true,\n            ),\n            'name' =\u003e 'My Test App'\n        ));\n        var_dump($trello-\u003emembers-\u003eget('my/boards'));\n\nPre-existing OAuth authorization and get your boards\n\n    :::php\n        \u003c?php\n        $key = 'yourkey';\n        $secret = 'yoursecret';\n        $oauth_token = 'youroauthtoken';\n        $oauth_secret = 'youroauthsecret';\n        $trello = new \\Trello\\Trello($key, $secret, $oauth_token, $oauth_secret);\n        var_dump($trello-\u003emembers-\u003eget('my/boards'));\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecollab%2Fphp-trello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivecollab%2Fphp-trello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivecollab%2Fphp-trello/lists"}