PHPackages                             datamweb/shield-oauth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. datamweb/shield-oauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

datamweb/shield-oauth
=====================

OAuth for CodeIgniter Shield

7035.9k↑37.5%19[6 issues](https://github.com/datamweb/shield-oauth/issues)[11 PRs](https://github.com/datamweb/shield-oauth/pulls)PHPCI passing

Since Oct 26Pushed 5mo ago8 watchersCompare

[ Source](https://github.com/datamweb/shield-oauth)[ Packagist](https://packagist.org/packages/datamweb/shield-oauth)[ RSS](/packages/datamweb-shield-oauth/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

[Farsi](./README.fa-IR.md) | English

Codeigniter Shield OAuth
------------------------

[](#codeigniter-shield-oauth)

[![PHPCSFixer](https://github.com/datamweb/shield-oauth/actions/workflows/phpcsfixer.yml/badge.svg)](https://github.com/datamweb/shield-oauth/actions/workflows/phpcsfixer.yml)[![PHPStan](https://github.com/datamweb/shield-oauth/actions/workflows/phpstan.yml/badge.svg)](https://github.com/datamweb/shield-oauth/actions/workflows/phpstan.yml)[![Rector](https://github.com/datamweb/shield-oauth/actions/workflows/rector.yml/badge.svg)](https://github.com/datamweb/shield-oauth/actions/workflows/rector.yml)[![PHPCPD](https://github.com/datamweb/shield-oauth/actions/workflows/phpcpd.yml/badge.svg)](https://github.com/datamweb/shield-oauth/actions/workflows/phpcpd.yml)

[![Logo Shield OAuth](https://github.com/datamweb/my-repository-files/raw/main/shield-oauth/image/shieldOAuthLogo.png)](https://github.com/datamweb/my-repository-files/blob/main/shield-oauth/image/shieldOAuthLogo.png)

[![Latest Stable Version](https://camo.githubusercontent.com/e5b9740e149c50a33351b59f54d96d36dc174f113dcf03a6bfd110759f26293f/68747470733a2f2f706f7365722e707567782e6f72672f646174616d7765622f736869656c642d6f617574682f763f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datamweb/shield-oauth) [![Total Downloads](https://camo.githubusercontent.com/eadae06cdfa06f59de225ae8fd8430d6e2e5222ed5e668c61ec7089b4734c23a/68747470733a2f2f706f7365722e707567782e6f72672f646174616d7765622f736869656c642d6f617574682f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datamweb/shield-oauth) [![Latest Unstable Version](https://camo.githubusercontent.com/65c3a1ad67994833339304de8c689f9fcc6896e5a0d06adcceed739e665a45e0/68747470733a2f2f706f7365722e707567782e6f72672f646174616d7765622f736869656c642d6f617574682f762f756e737461626c653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datamweb/shield-oauth) [![License](https://camo.githubusercontent.com/0d42de262eb70da7efa9c5e866b402254643c9f7d160f5858ef74449ad18fde1/68747470733a2f2f706f7365722e707567782e6f72672f646174616d7765622f736869656c642d6f617574682f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datamweb/shield-oauth) [![PHP Version Require](https://camo.githubusercontent.com/f2239836e5cad24304dc529318f2478d64de9edf739193755c76f0e15f894d4b/68747470733a2f2f706f7365722e707567782e6f72672f646174616d7765622f736869656c642d6f617574682f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/datamweb/shield-oauth)

`Shield OAuth` helps you to provide the possibility of login or registering users through the OAuth service. Currently, `Shield OAuth` supports `Google OAuth` and `GitHub OAuth` by default, but it allows you to implement it for any other service, including **Yahoo**, **Facebook**, **Twitter**, **LinkedIn**, **GitLab** and ...

In `Shield OAuth`, it has been considered to be easy to use by developers and the possibility of expansion to connect to other services in the shortest possible time.

[![Demo Shield OAuth](https://github.com/datamweb/my-repository-files/raw/main/shield-oauth/image/ShieldOAuthDemo.jpg)](https://github.com/datamweb/my-repository-files/blob/main/shield-oauth/image/ShieldOAuthDemo.jpg)

Requirements
------------

[](#requirements)

- [Composer](https://getcomposer.org)
- [Codeigniter](https://codeigniter4.github.io/CodeIgniter4/installation/installing_composer.html#installation) **v4.3.5** or later
- [Codeigniter Shield](https://github.com/codeigniter4/shield)
- [cURL Library](https://www.php.net/manual/en/book.curl.php) to be installed in your version of PHP

Shield OAuth Documentation
--------------------------

[](#shield-oauth-documentation)

In the documentation, I have explained how to **install**, **configure**, and how to **create custom class `NewOAuth`** connections to other services. Documentation for `Shield OAuth` can be found on the [docs](https://www.shield-oauth.codeigniter4.ir/).

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.

Acknowledgements
----------------

[](#acknowledgements)

Every open-source project depends on it's contributors to be a success. The following users have contributed in one manner or another in making Codeigniter `Shield OAuth`:

[ ![Contributors](https://camo.githubusercontent.com/95750547725779cea453389e1e9315ebcb898ca71d857a4bc50c2cf8d98b6065/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d646174616d7765622f736869656c642d6f61757468)](https://github.com/datamweb/shield-oauth/graphs/contributors)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance47

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/11f942ce12c19304e261056846c5107e241bb03016c01495731ea2c482b11835?d=identicon)[datamweb](/maintainers/datamweb)

![](https://www.gravatar.com/avatar/2786c775442e943e61886ab03457110fa7f056846b1e9ba7bb87825b82d987cf?d=identicon)[datamweb1](/maintainers/datamweb1)

---

Top Contributors

[![datamweb](https://avatars.githubusercontent.com/u/9530214?v=4)](https://github.com/datamweb "datamweb (242 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (44 commits)")[![warcooft](https://avatars.githubusercontent.com/u/22941122?v=4)](https://github.com/warcooft "warcooft (27 commits)")[![kenjis](https://avatars.githubusercontent.com/u/87955?v=4)](https://github.com/kenjis "kenjis (22 commits)")[![sammyskills](https://avatars.githubusercontent.com/u/8720569?v=4)](https://github.com/sammyskills "sammyskills (15 commits)")[![jozefrebjak](https://avatars.githubusercontent.com/u/36922215?v=4)](https://github.com/jozefrebjak "jozefrebjak (3 commits)")[![AlbertoMoricca](https://avatars.githubusercontent.com/u/105434937?v=4)](https://github.com/AlbertoMoricca "AlbertoMoricca (2 commits)")[![clsmedia](https://avatars.githubusercontent.com/u/9933752?v=4)](https://github.com/clsmedia "clsmedia (2 commits)")[![l-vanel](https://avatars.githubusercontent.com/u/61557161?v=4)](https://github.com/l-vanel "l-vanel (2 commits)")[![tardisblink](https://avatars.githubusercontent.com/u/78121096?v=4)](https://github.com/tardisblink "tardisblink (1 commits)")[![webalchemist](https://avatars.githubusercontent.com/u/365968?v=4)](https://github.com/webalchemist "webalchemist (1 commits)")[![Zoly](https://avatars.githubusercontent.com/u/903196?v=4)](https://github.com/Zoly "Zoly (1 commits)")

---

Tags

codeigniter4githuboauthgoogleoauthoauthoauth2shield

### Embed Badge

![Health badge](/badges/datamweb-shield-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/datamweb-shield-oauth/health.svg)](https://phpackages.com/packages/datamweb-shield-oauth)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
