PHPackages                             nodge/lightopenid - 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. nodge/lightopenid

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

nodge/lightopenid
=================

Lightweight PHP5 library for easy OpenID authentication.

1.1.2(12y ago)0151.3k—1.5%217MIT LicensePHPPHP &gt;=5.2

Since Aug 31Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Nodge/LightOpenID)[ Packagist](https://packagist.org/packages/nodge/lightopenid)[ Docs](https://github.com/Nodge/LightOpenID)[ RSS](/packages/nodge-lightopenid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (17)

LightOpenID
===========

[](#lightopenid)

Lightweight PHP5 library for easy OpenID authentication.

- `Version....:` [**1.1.2** ⏬](https://github.com/iignatov/LightOpenID/archive/master.zip)( *see [the change log](http://github.com/iignatov/LightOpenID/blob/master/CHANGELOG.md) for details* )
- `Released on:` January 15, 2013
- `Source code:` [Gitorious 🔗](http://gitorious.org/lightopenid) [GitHub ![:octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png ":octocat:")](http://github.com/iignatov/LightOpenID)
- `Homepage...:`
- `Author.....:` Mewp ()

Quick start
-----------

[](#quick-start)

### Sign-on with OpenID in just 2 steps:

[](#sign-on-with-openid-in-just-2-steps)

1. Authentication with the provider:

    ```
    $openid = new LightOpenID('my-host.example.org');

    $openid->identity = 'ID supplied by user';

    header('Location: ' . $openid->authUrl());
    ```
2. Verification:

    ```
    $openid = new LightOpenID('my-host.example.org');

    if ($openid->mode) {
      echo $openid->validate() ? 'Logged in.' : 'Failed!';
    }
    ```

### Support for AX and SREG extensions:

[](#support-for-ax-and-sreg-extensions)

To use the AX and SREG extensions, specify `$openid->required` and/or `$openid->optional`before calling `$openid->authUrl()`. These are arrays, with values being AX schema paths (the 'path' part of the URL). For example:

```
$openid->required = array('namePerson/friendly', 'contact/email');
$openid->optional = array('namePerson/first');
```

Note that if the server supports only SREG or OpenID 1.1, these are automaticaly mapped to SREG names. To get the values use:

```
$openid->getAttributes();
```

For more information see [USAGE.md](http://github.com/iignatov/LightOpenID/blob/master/USAGE.md).

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

[](#requirements)

This library requires PHP &gt;= 5.1.2 with cURL or HTTP/HTTPS stream wrappers enabled.

Features
--------

[](#features)

- Easy to use - you can code a functional client in less than ten lines of code.
- Uses cURL if avaiable, PHP-streams otherwise.
- Supports both OpenID 1.1 and 2.0.
- Supports Yadis discovery.
- Supports only stateless/dumb protocol.
- Works with PHP &gt;= 5.
- Generates no errors with `error_reporting(E_ALL | E_STRICT)`.

Links
-----

[](#links)

- [JavaScript OpenID Selector](http://code.google.com/p/openid-selector/) - simple user interface that can be used with LightOpenID.
- [HybridAuth](http://hybridauth.sourceforge.net/) - easy to install and use social sign on PHP library, which uses LightOpenID.
- [OpenID Dev Specifications](http://openid.net/developers/specs/) - documentation for the OpenID extensions and related topics.

License
-------

[](#license)

[LightOpenID](http://github.com/iignatov/LightOpenID)is an open source software available under the [MIT License](http://opensource.org/licenses/mit-license.php).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4643d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1094801?v=4)[Maksim Zemskov](/maintainers/Nodge)[@Nodge](https://github.com/Nodge)

---

Top Contributors

[![iignatov](https://avatars.githubusercontent.com/u/820242?v=4)](https://github.com/iignatov "iignatov (13 commits)")[![Nodge](https://avatars.githubusercontent.com/u/1094801?v=4)](https://github.com/Nodge "Nodge (2 commits)")[![landas](https://avatars.githubusercontent.com/u/286139?v=4)](https://github.com/landas "landas (1 commits)")[![nhnb](https://avatars.githubusercontent.com/u/364184?v=4)](https://github.com/nhnb "nhnb (1 commits)")[![russor](https://avatars.githubusercontent.com/u/2165776?v=4)](https://github.com/russor "russor (1 commits)")[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (1 commits)")

---

Tags

AuthenticationOpenId

### Embed Badge

![Health badge](/badges/nodge-lightopenid/health.svg)

```
[![Health](https://phpackages.com/badges/nodge-lightopenid/health.svg)](https://phpackages.com/packages/nodge-lightopenid)
```

###  Alternatives

[hybridauth/hybridauth

PHP Social Authentication Library

3.4k8.5M94](/packages/hybridauth-hybridauth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[opauth/opauth

Multi-provider authentication framework for PHP

1.6k783.4k58](/packages/opauth-opauth)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[nodge/yii2-eauth

Yii2 EAuth Extension. EAuth allows to authenticate users with accounts on other websites (Google, Facebook, Twitter, etc).

19399.4k](/packages/nodge-yii2-eauth)

PHPackages © 2026

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