{"id":13609558,"url":"https://github.com/trafficinc/CodeIgniter-Authit","last_synced_at":"2025-04-12T20:32:06.614Z","repository":{"id":140581701,"uuid":"66112704","full_name":"trafficinc/CodeIgniter-Authit","owner":"trafficinc","description":"CodeIgniter 3 User Authentication Library thats Lightweight, flexible, and Secure","archived":false,"fork":false,"pushed_at":"2021-08-21T15:29:21.000Z","size":15,"stargazers_count":26,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-07T15:45:40.710Z","etag":null,"topics":["authit-library","codeigniter","codeigniter-authit","codeigniter3","codeigniter3-authentication-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trafficinc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-19T21:12:45.000Z","updated_at":"2023-02-04T19:59:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"842eb7c8-61ed-4675-a044-438d1475f31c","html_url":"https://github.com/trafficinc/CodeIgniter-Authit","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/trafficinc%2FCodeIgniter-Authit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trafficinc%2FCodeIgniter-Authit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trafficinc%2FCodeIgniter-Authit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trafficinc%2FCodeIgniter-Authit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trafficinc","download_url":"https://codeload.github.com/trafficinc/CodeIgniter-Authit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248629819,"owners_count":21136322,"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":["authit-library","codeigniter","codeigniter-authit","codeigniter3","codeigniter3-authentication-library"],"created_at":"2024-08-01T19:01:35.932Z","updated_at":"2025-04-12T20:32:05.924Z","avatar_url":"https://github.com/trafficinc.png","language":"PHP","readme":"CodeIgniter Authit\n==================\n\nA lightweight and flexible CodeIgniter 3 authentication library. It comes packaged with an example `Auth` class and related views so that you can get your CI project up and running in minutes. Test/View, sent emails with an email preview that allows you to view the last sent email by going to ...auth/sentemails. See config/authit to turn on for development, off for production, and on each authentication action you want it on, already enabled on password reset functionality by default.  \n\nRequirements\n------------\n\n* CodeIgniter 3.0+\n* PHP 5.5+\n* MySQL\n\nInstallation\n------------\n\n1. Download and unpack the contents of the application folder to your CodeIgniter project.\n2. That's it! Visit `/auth` to signup and login.\n3. If you want you can edit `application/config/authit.php` to change some settings, but the defaults are fine.\n\nUsage\n-----\n\nSee [example Auth controller](application/controllers/Auth.php) which provides a functioning example of login, sign up, logout and forget/reset password. The Authit library provides several API methods:\n\n`logged_in()` - Returns `true` if the current user logged in, `false` otherwise.\n\n`login($email, $password)` - Attempts to login a user with a given `$email` and `$password`. Returns `true` if successful and `false` otherwise.\n\n`logout([$redirect = false])` - Logs out the current user (by destroying the session). Accepts an optional `$redirect` parameter to redirect to a given URI after logout.\n\n`signup($email, $password)` - Attempts to create a user with a given `$email` and `$password`. Returns `true` if successful and `false` otherwise.\n\n`reset_password($user_id, $new_password)` - Resets the password of the user with the given `$user_id`.\n\nThe [Authit helper](application/helpers/authit_helper.php) includes the following helper functions:\n\n`logged_in()` - Returns `true` if the current user logged in, `false` otherwise (shortcut to the Authit library `logged_in()` function).\n\n`user([$key = ''])` - Returns the session data for the currently logged in user. If you specifiy a `$key` you can get specific info, for exmaple `user('id')` returns the currently logged in user ID.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrafficinc%2FCodeIgniter-Authit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrafficinc%2FCodeIgniter-Authit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrafficinc%2FCodeIgniter-Authit/lists"}