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

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

robertdrakedennis/lightopenid
=============================

A PPatched: Lightweight PHP5 library for easy OpenID authentication.

1.3.1(10y ago)05MITPHPPHP &gt;=5.2

Since Feb 20Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

> **NOTICE**

> I am no longer able to support or maintain this project - if you would like to take over the project, please drop me a line.

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

[](#lightopenid)

Lightweight PHP5 library for easy OpenID authentication.

- `Version....:` [**1.3.1** ⏬](https://github.com/iignatov/LightOpenID/archive/master.zip)( *see [the change log](https://github.com/iignatov/LightOpenID/blob/master/CHANGELOG.md) for details* )
- `Released on:` March 04, 2016
- `Source code:` [Official GitHub Repo ![:octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png ":octocat:")](https://github.com/Mewp/lightopenid)
- `Homepage...:`
- `Author.....:` [Mewp](https://github.com/Mewp)

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

[](#quick-start)

### Add to composer.json

[](#add-to-composerjson)

```
"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/iignatov/LightOpenID"
  }
],

"require": {
  "php": ">=5.4.0",
  "iignatov/lightopenid": "*"
}
```

### 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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83% 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 ~12 days

Total

2

Last Release

3726d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/685e05d43b695685becbe9277fb4ff4cf22798647b6cc41dab6702fb269df082?d=identicon)[robertdrakedennis](/maintainers/robertdrakedennis)

---

Top Contributors

[![iignatov](https://avatars.githubusercontent.com/u/820242?v=4)](https://github.com/iignatov "iignatov (44 commits)")[![robertdrakedennis](https://avatars.githubusercontent.com/u/31261583?v=4)](https://github.com/robertdrakedennis "robertdrakedennis (4 commits)")[![matejgleza](https://avatars.githubusercontent.com/u/4979665?v=4)](https://github.com/matejgleza "matejgleza (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)")[![nhnb](https://avatars.githubusercontent.com/u/364184?v=4)](https://github.com/nhnb "nhnb (1 commits)")[![landas](https://avatars.githubusercontent.com/u/286139?v=4)](https://github.com/landas "landas (1 commits)")

---

Tags

securityAuthenticationOpenId

### Embed Badge

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

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

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[hybridauth/hybridauth

PHP Social Authentication Library

3.4k8.5M94](/packages/hybridauth-hybridauth)[lusitanian/oauth

PHP 7.2 oAuth 1/2 Library

1.1k23.2M121](/packages/lusitanian-oauth)[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)

PHPackages © 2026

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