{"id":17458127,"url":"https://github.com/pocesar/twitter-kohana","last_synced_at":"2025-07-13T08:34:26.719Z","repository":{"id":8258607,"uuid":"9708219","full_name":"pocesar/twitter-kohana","owner":"pocesar","description":"Kohana 3.3 module for Twitter OAuth library","archived":false,"fork":false,"pushed_at":"2013-05-05T21:24:14.000Z","size":123,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T06:28:20.946Z","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/pocesar.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":"2013-04-27T02:49:06.000Z","updated_at":"2022-12-27T22:34:39.000Z","dependencies_parsed_at":"2022-08-07T00:00:55.293Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/twitter-kohana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pocesar/twitter-kohana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Ftwitter-kohana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Ftwitter-kohana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Ftwitter-kohana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Ftwitter-kohana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/twitter-kohana/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Ftwitter-kohana/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265109920,"owners_count":23712773,"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-10-18T03:55:05.256Z","updated_at":"2025-07-13T08:34:26.657Z","avatar_url":"https://github.com/pocesar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kohana 3.3 OAuth Helper for Twitter\n============\n\nThis module uses git://github.com/abraham/twitteroauth.git and provide an easier workflow for Twitter OAuth without many extra steps. \n\n# Usage:\n\n### Set your APPPATH/config/twitterauth.php with\n\n```php\nreturn array(\n  'consumer_key' =\u003e 'get it from dev.twitter.com',\n  'consumer_secret' =\u003e 'get it from dev.twitter.com'\n);\n```\n\n### In your controller, check if the user is already logged in:\n\n```php\n$twitter = Twitterauth::factory()-\u003einit();\nif (!($user = $twitter-\u003egetUser()))\n{\n  // Not logged in or not authorize, send them to the authorize APP url\n  HTTP::redirect($twitter-\u003egetAuthorizeURL()));\n}\nelse\n{\n  // $user-\u003escreen_name\n}\n```\n\nDone. The redirect should happen in a popup, since the callback calls `window.close()`. The module takes care of the cookies and session variables for you. \nIf you want, overwrite the original `Controller_Twitterauth_Index` controller so you can control the denied / errors by yourself (currently it simply ignores it) or even override the callback Route using `Route::set('twitter-auth', 'your-route')`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Ftwitter-kohana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Ftwitter-kohana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Ftwitter-kohana/lists"}