Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riverside/web-auth
PHP authentication library
https://github.com/riverside/web-auth
authentication authorization facebook-login google-login linkedin-login oauth oauth1 oauth2 social-login twitter-login
Last synced: 5 days ago
JSON representation
PHP authentication library
- Host: GitHub
- URL: https://github.com/riverside/web-auth
- Owner: riverside
- License: mit
- Created: 2019-05-01T11:03:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-15T05:25:22.000Z (over 5 years ago)
- Last Synced: 2023-07-15T20:14:35.811Z (over 1 year ago)
- Topics: authentication, authorization, facebook-login, google-login, linkedin-login, oauth, oauth1, oauth2, social-login, twitter-login
- Language: PHP
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# web-auth
PHP authentication library based on OAuth1 and OAuth2.
Supported social providers includes Facebook, Google, Twitter, and LinkedIn.## Installation
```
$ php composer.phar install
```
or
```
"riverside/web-auth": "1.0"
```## Example
```php
setClientId($client_id)
->setClientSecret($client_secret)
->setRedirectUri($redirect_uri);if ($identity = $client->getIdentity())
{
echo 'Hi, '. $identity->getDisplayName() .'Log Out';
} else {
echo 'Log In';
}
```