https://github.com/fetchandadd/guardian
Authentication middleware for PSR-15
https://github.com/fetchandadd/guardian
authentication middleware php psr-15
Last synced: about 1 month ago
JSON representation
Authentication middleware for PSR-15
- Host: GitHub
- URL: https://github.com/fetchandadd/guardian
- Owner: fetchandadd
- License: mit
- Created: 2017-02-02T20:34:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T15:54:45.000Z (over 9 years ago)
- Last Synced: 2025-03-10T16:44:43.934Z (over 1 year ago)
- Topics: authentication, middleware, php, psr-15
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Guardian
[](https://travis-ci.org/timtegeler/guardian)
[](https://coveralls.io/github/timtegeler/guardian?branch=master)
[]()
**Guardian** provides an adapter between an authentication backend and your PSR-15 middleware stack
- Compatible to the PSR-15 middleware interface
- Adaptable to your authentication backend with a simple interface
```php
dispatch($request);
```
## Authentication Backend
The focus of Guardian is on the adaptation of an authentication backend with a PSR-15 middleware stack.
This means that Guardian itself is not capable of providing authentication e.g. [Basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication). But Guardian ships with a simple interface that can be implemented by the authentication backend. The interface consists of two methods.
```php