Opauth is a multi-provider authentication framework for PHP, inspired by OmniAuth for Ruby.
Opauth enables PHP applications to do user authentication with ease.
Try out Opauth for yourself at http://opauth.org
What is Opauth?
Opauth provides a standardized method for PHP applications to interface with authentication providers.
Opauth as a framework provides a set of API that allows developers to create strategies that work in a predictable manner across PHP frameworks and applications.
Opauth is designed works well with other PHP applications & frameworks.
It is currently supported on vanilla (plain) PHP applications (of course), CakePHP, Yii Framework and more to come.
If your PHP framework of choice is not yet listed, you can still use Opauth like you would a normal PHP component (class).
DocumentRootof your web server to
(Opauth can be instantiated in your own PHP app, but we will leave that out of this quick start guide)
cp example/opauth.conf.php.default example/opauth.conf.php
and make the necessary changes.
Send user to
Check out the wiki for more technical details.
A strategy is a set of instructions that interfaces with respective authentication providers and relays it back to Opauth.
Generic strategy: OAuth
Opauth is a relatively new framework, having only released its v0.1.0 in late May 2012.
We need your help in expanding the list of available strategies. Refer to strategy contribution guide if you would like to contribute a strategy. Do notify us if you have developed an Opauth strategy and would like it to be listed.
Issues & questions
Used Opauth in your project? Let us know!
v0.2.0 (23 May 2012)
- Opauth is now Composer compatible and listed on Packagist
- Opauth now supports autoloaders
- If a strategy is not autoloaded, Opauth searches for it at
strategy_dirdefined in config.
- Class name for strategy Foo should be FooStrategy instead of Foo.
- This is to reduce the likelihood of duplicate classnames due to Opauth not requiring the use of namespace.
- 0.1.0-type class name, ie. Foo, is still loaded, but deprecated.
v0.1.0 (22 May 2012)
The MIT License
Copyright © 2012 U-Zyn Chua (http://uzyn.com)