PHPackages                             michalsvec/nette-opauth - 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. [Framework](/categories/framework)
4. /
5. michalsvec/nette-opauth

ActiveLibrary[Framework](/categories/framework)

michalsvec/nette-opauth
=======================

Opauth extension for Nette framework

v0.6.7(10y ago)214.1k6[2 issues](https://github.com/michalsvec/nette-opauth/issues)[1 PRs](https://github.com/michalsvec/nette-opauth/pulls)MITPHP

Since Jun 11Pushed 7y ago4 watchersCompare

[ Source](https://github.com/michalsvec/nette-opauth)[ Packagist](https://packagist.org/packages/michalsvec/nette-opauth)[ RSS](/packages/michalsvec-nette-opauth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (6)Versions (17)Used By (0)

michalsvec/nette-opauth
=======================

[](#michalsvecnette-opauth)

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

[](#requirements)

As it's an Opauth extension for Nette framework, it requires

- [Nette Framework 2.1.\*](https://github.com/nette/nette)
- [Opauth](https://github.com/opauth/opauth)

Installation
------------

[](#installation)

Update composer.json:

```
"require": {
    "michalsvec/nette-opauth": "*"
}
```

and then

```
$ composer install
```

Update bootstrap.php:

```
// add compiler extension
$configurator->onCompile[] = function (\Nette\Config\Configurator $config, \Nette\Config\Compiler $compiler) {
	$compiler->addExtension('opauth', new NetteOpauth\DI\Extension());
};

// register routers
\NetteOpauth\NetteOpauth::register($container->router);
```

Check if routes are in proper order (auth routes before the commons). And update Auth presenter as shown in example.

Then you can use:

```
{if Nette\Config\Configurator::detectDebugMode()}
	Fake login
{/if}
Sign-in with Google
Sign-in with Facebook
Sign-in with Twitter
Sign-in with LinkedIn
```

Configure in config.neon
------------------------

[](#configure-in-configneon)

```
opauth:
	path: '/auth/'
	debug: false
	callback_url: '{path}callback'
	security_salt: '123abc456def'
	callback_transport: 'session'
	Strategy:
		Facebook:
			app_id: ''
			app_secret: ''
		Google:
			client_id: ''
			client_secret: ''
		Twitter:
			key: ''
			secret: ''
		LinkedIn:
			api_key: ''
			secret_key: ''

```

Tips and triks
--------------

[](#tips-and-triks)

- opauth needs public callback url to proper redirect thus is impossible to use it at localhost (except the fake login).
- facebook
    - registration of [app](https://developers.facebook.com/apps)
- google
    - registration of [app](https://code.google.com/apis/console)
    - google ids are very long (more than unsigned int) be careful about that
- twitter
    - registration of [app](https://dev.twitter.com/apps)
    - do not provide email
- linkedin
    - registration of [app](https://www.linkedin.com/secure/developer)
    - provide OAuth 2.0 Redirect URLs in app registration:
    - to obtain email, include r\_emailaddress to scope, eg.: 'scope' =&gt; 'r\_basicprofile r\_emailaddress'.

Roadmap
-------

[](#roadmap)

- add more identities for various providers

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 76.4% 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.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~148 days

Total

16

Last Release

3879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/953e6041aade4879122d6f205624351f9d546dc92baa169d47d01ae726bbb078?d=identicon)[michalsvec](/maintainers/michalsvec)

---

Top Contributors

[![michalsvec](https://avatars.githubusercontent.com/u/209153?v=4)](https://github.com/michalsvec "michalsvec (42 commits)")[![fabiancz](https://avatars.githubusercontent.com/u/1045330?v=4)](https://github.com/fabiancz "fabiancz (4 commits)")[![temistokles](https://avatars.githubusercontent.com/u/1108659?v=4)](https://github.com/temistokles "temistokles (3 commits)")[![o5](https://avatars.githubusercontent.com/u/218562?v=4)](https://github.com/o5 "o5 (2 commits)")[![Kedrigern](https://avatars.githubusercontent.com/u/785900?v=4)](https://github.com/Kedrigern "Kedrigern (2 commits)")[![rikiless](https://avatars.githubusercontent.com/u/589851?v=4)](https://github.com/rikiless "rikiless (1 commits)")[![tomasnikl](https://avatars.githubusercontent.com/u/1084596?v=4)](https://github.com/tomasnikl "tomasnikl (1 commits)")

---

Tags

netteOPAuth

### Embed Badge

![Health badge](/badges/michalsvec-nette-opauth/health.svg)

```
[![Health](https://phpackages.com/badges/michalsvec-nette-opauth/health.svg)](https://phpackages.com/packages/michalsvec-nette-opauth)
```

###  Alternatives

[vojtech-dobes/nette-ajax-history

Adds History API support for Nette Framework.

30179.4k2](/packages/vojtech-dobes-nette-ajax-history)[flame/modules

Nette modules on the Steroids

1361.6k3](/packages/flame-modules)

PHPackages © 2026

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