{"id":14987325,"url":"https://github.com/agungsugiarto/codeigniter4-authentication","last_synced_at":"2025-07-25T17:33:51.677Z","repository":{"id":42999964,"uuid":"300663799","full_name":"agungsugiarto/codeigniter4-authentication","owner":"agungsugiarto","description":"The codeigniter4\\authentication component provides an API for authentication and includes concrete authentication adapters for common use case scenarios.","archived":false,"fork":false,"pushed_at":"2024-03-13T14:37:04.000Z","size":322,"stargazers_count":49,"open_issues_count":2,"forks_count":9,"subscribers_count":5,"default_branch":"2.x","last_synced_at":"2024-12-09T05:34:24.611Z","etag":null,"topics":["auth","authentication","codeigniter4"],"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/agungsugiarto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"custom":"https://saweria.co/agungsugiarto"}},"created_at":"2020-10-02T15:48:38.000Z","updated_at":"2024-03-23T21:10:41.000Z","dependencies_parsed_at":"2024-06-19T11:31:58.607Z","dependency_job_id":"bfafef25-a392-4b45-b31e-5b21934349e6","html_url":"https://github.com/agungsugiarto/codeigniter4-authentication","commit_stats":{"total_commits":127,"total_committers":3,"mean_commits":"42.333333333333336","dds":"0.19685039370078738","last_synced_commit":"2108a36b13def85bad32ad940553b0f20c3560aa"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungsugiarto%2Fcodeigniter4-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungsugiarto%2Fcodeigniter4-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungsugiarto%2Fcodeigniter4-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agungsugiarto%2Fcodeigniter4-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agungsugiarto","download_url":"https://codeload.github.com/agungsugiarto/codeigniter4-authentication/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230575851,"owners_count":18247484,"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":["auth","authentication","codeigniter4"],"created_at":"2024-09-24T14:14:27.146Z","updated_at":"2024-12-20T11:07:58.539Z","avatar_url":"https://github.com/agungsugiarto.png","language":"PHP","readme":"# CodeIgniter4 Authentication\n\n[![tests](https://github.com/agungsugiarto/codeigniter4-authentication/actions/workflows/php.yml/badge.svg)](https://github.com/agungsugiarto/codeigniter4-authentication/actions/workflows/php.yml)\n[![Latest Stable Version](https://poser.pugx.org/agungsugiarto/codeigniter4-authentication/v)](https://github.com/agungsugiarto/codeigniter4-authentication/releases)\n[![Total Downloads](https://poser.pugx.org/agungsugiarto/codeigniter4-authentication/downloads)](https://packagist.org/packages/agungsugiarto/codeigniter4-authentication/stats)\n[![Latest Unstable Version](https://poser.pugx.org/agungsugiarto/codeigniter4-authentication/v/unstable)](https://packagist.org/packages/agungsugiarto/codeigniter4-authentication)\n[![License](https://poser.pugx.org/agungsugiarto/codeigniter4-authentication/license)](https://github.com/agungsugiarto/codeigniter4-authentication/blob/master/LICENSE.md)\n\n## About\nThe `codeigniter4\\authentication` component provides an API for authentication and\nincludes concrete authentication adapters for common use case scenarios.\n\n- Inspired from https://github.com/lonnieezell/codigniter-shield\n- Most inspired from auth by laravel https://github.com/illuminate/auth\n\n## Upgrade from v1.x to 2.x\n### Composer Dependencies\nYou should update the following dependencies in your application's composer.json file:\n\n`agungsugiarto/codeigniter4-authentication` to `^2.0`\n\n### User Entity\n\nOpen class `App\\Entities\\User` add interface and trait to implement.\n```diff\nnamespace Fluent\\Auth\\Entities;\n\n- use CodeIgniter\\Entity;\n+ use CodeIgniter\\Entity\\Entity;\nuse Fluent\\Auth\\Contracts\\AuthenticatorInterface;\n+ use Fluent\\Auth\\Contracts\\AuthorizableInterface;\nuse Fluent\\Auth\\Contracts\\HasAccessTokensInterface;\nuse Fluent\\Auth\\Contracts\\ResetPasswordInterface;\nuse Fluent\\Auth\\Contracts\\VerifyEmailInterface;\nuse Fluent\\Auth\\Facades\\Hash;\nuse Fluent\\Auth\\Traits\\AuthenticatableTrait;\nuse Fluent\\Auth\\Traits\\AuthorizableTrait;\nuse Fluent\\Auth\\Traits\\CanResetPasswordTrait;\nuse Fluent\\Auth\\Traits\\HasAccessTokensTrait;\nuse Fluent\\Auth\\Traits\\MustVerifyEmailTrait;\n\nclass User extends Entity implements\n    AuthenticatorInterface,\n+   AuthorizableInterface,\n    HasAccessTokensInterface,\n    ResetPasswordInterface,\n    VerifyEmailInterface\n{\n    use AuthenticatableTrait;\n+   use AuthorizableTrait;\n    use CanResetPasswordTrait;\n    use HasAccessTokensTrait;\n    use MustVerifyEmailTrait;\n}\n```\n\n### AuthServiceProvider\n\nOpen `App\\Providers\\AuthServiceProvider`\n```diff\nnamespace Fluent\\Auth;\n\n+ use Fluent\\Auth\\Facades\\Gate;\nuse Fluent\\Auth\\AbstractServiceProvider;\n\nclass AuthServiceProvider extends AbstractServiceProvider\n{\n+   /**\n+    * The policy mappings for the application.\n+    *\n+    * @var array\u003cclass-string, class-string\u003e\n+    */\n+   protected static $policies = [];\n\n    /**\n     * {@inheritdoc}\n     */\n    public static function register()\n    {\n+        static::registerPolicies();\n    }\n}\n```\n\n## Documentation\n- [Authentication](docs/en/authentication.md)\n- [Authorization](docs/en/authorization.md)\n\n## Community Authentication Guards\n- JWT (JSON Web Token) - [agungsugiarto/codeigniter4-authentication-jwt](https://github.com/agungsugiarto/codeigniter4-authentication-jwt)\n\n## Authentication Demo\n- [codeigniter4-authentication-demo](https://github.com/agungsugiarto/codeigniter4-authentication-demo)\n\nChangelog\n--------\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\nContributions are very welcome.\n\n## License\n\nReleased under the MIT License, see [LICENSE](LICENSE.md).\n","funding_links":["https://saweria.co/agungsugiarto"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagungsugiarto%2Fcodeigniter4-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagungsugiarto%2Fcodeigniter4-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagungsugiarto%2Fcodeigniter4-authentication/lists"}