{"id":16860357,"url":"https://github.com/apacheex/codeigniter-hybridauth","last_synced_at":"2025-03-23T15:31:46.211Z","repository":{"id":96682639,"uuid":"95352391","full_name":"ApacheEx/CodeIgniter-HybridAuth","owner":"ApacheEx","description":"HybridAuth library (v2, v3) for CodeIgniter 3.x","archived":false,"fork":false,"pushed_at":"2020-06-15T05:35:23.000Z","size":23,"stargazers_count":29,"open_issues_count":3,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-18T21:54:39.255Z","etag":null,"topics":["codeigniter","codeigniter-library","hybridauth","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ApacheEx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-25T10:15:59.000Z","updated_at":"2025-03-11T16:05:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc5f9112-3f69-48f8-9045-683e2e179ff0","html_url":"https://github.com/ApacheEx/CodeIgniter-HybridAuth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApacheEx%2FCodeIgniter-HybridAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApacheEx%2FCodeIgniter-HybridAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApacheEx%2FCodeIgniter-HybridAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApacheEx%2FCodeIgniter-HybridAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApacheEx","download_url":"https://codeload.github.com/ApacheEx/CodeIgniter-HybridAuth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245122915,"owners_count":20564403,"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":["codeigniter","codeigniter-library","hybridauth","php"],"created_at":"2024-10-13T14:23:11.766Z","updated_at":"2025-03-23T15:31:46.184Z","avatar_url":"https://github.com/ApacheEx.png","language":"PHP","readme":"# CodeIgniter-HybridAuth\nHybridAuth library for CodeIgniter 3.x\n\n## Dependencies\n- [HybridAuth 2.x](https://github.com/hybridauth/hybridauth) for `CodeIgniter-HybridAuth v1`\n- [HybridAuth 3.x](https://github.com/hybridauth/hybridauth) for `CodeIgniter-HybridAuth v2`\n- [CodeIgniter 3.x](https://www.codeigniter.com)\n\n## Installation\nIf you're familiar with [composer](https://getcomposer.org) (recommended :+1:):\n- go to `application` and run the following command:\n```\ncomposer require hybridauth/hybridauth\n```\n- then, go to `application/config.php` and set `composer_autoload` to `TRUE`:\n```php\n$config['composer_autoload'] = TRUE;\n```\nAlternatively, you can:\n- download [HybridAuth library](https://github.com/hybridauth/hybridauth/releases)\n- unpack the library into `application/third_party/hybridauth` folder\n\nOk, now copy files from this repository into your project:\n```\napplication/config/hybridauth.php\napplication/libraries/Hybridauth.php\napplication/controllers/Hauth.php\napplication/views/hauth\n```\n\nGood, now let's put `http://\u003cyourdomain.com\u003e/index.php/hauth/window/\u003cProvider ID\u003e` as valid `Callback URL` in your provider application.\n\n_e.g for Facebook provider:_\n- go to `https://developers.facebook.com/apps/YOUR_APP/fb-login`\n- put `http://\u003cyourdomain.com\u003e/index.php/hauth/window/facebook` as `Valid OAuth redirect URIs`\n\nFinally, configure the providers inside the `application/config/hybridauth.php` file\n- To make correct configuration for providers please visit the [HybridAuth documentation](https://hybridauth.github.io)\n\n:tada: :tada: :tada:\n\n## Quick Start\n- Visit `http://\u003cyourdomain.com\u003e/index.php/hauth` to see enabled providers.\n- Modify `Hauth` controller to your fits.\n\n## How to use\nFirst, you should load HA library into the system\n```php\n$this-\u003eload-\u003elibrary('hybridauth');\n```\nTo create a login link you can use\n```php\nanchor('hauth/window/facebook', 'Facebook');\n```\nOr just put this link to your html code.\n```html\n\u003ca href=\"http://www.example.com/index.php/hauth/window/facebook\"\u003eLog in with Facebook\u003c/a\u003e\n```\nTo access HA instance use `$this-\u003ehybridauth-\u003eHA`\n```php\n// Login into facebook.\n$adapter = $this-\u003ehybridauth-\u003eHA-\u003eauthenticate('Facebook');\n// Get user profile.\n$profile = $adapter-\u003egetUserProfile();\n```\n\nIt's recommended to use Hauth controller (_/index.php/hauth_).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapacheex%2Fcodeigniter-hybridauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapacheex%2Fcodeigniter-hybridauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapacheex%2Fcodeigniter-hybridauth/lists"}