https://github.com/kenjis/fuel-simplerauth
FuelPHP SimplerAuth Package
https://github.com/kenjis/fuel-simplerauth
Last synced: 5 months ago
JSON representation
FuelPHP SimplerAuth Package
- Host: GitHub
- URL: https://github.com/kenjis/fuel-simplerauth
- Owner: kenjis
- License: mit
- Created: 2012-08-06T08:53:57.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-06T08:58:16.000Z (over 13 years ago)
- Last Synced: 2025-02-26T13:39:32.098Z (11 months ago)
- Language: PHP
- Homepage:
- Size: 92.8 KB
- Stars: 4
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FuelPHP SimplerAuth Package
Simpler than SimpleAuth. No database, no role. Simple but secure a bit.
## Installing
Simply add `simplerauth` to your config.php `always_loaded.packages` config option.
## Usage
### How to create users
```
$ oil console
>>> Auth::create_user('username', 'password');
```
Output:
```
'username' => array(
'a32ca7aa311e7e6dcadc208303aa1562',
'8e072d2df13769a6a88cd0a20ca3d789a50c780147c03abd4b1443431729d7bc'
),
```
Copy config/simplerauth.php to app/config folder, and paste the output into the file.
### Methods
Auth::login()
Auth::logout()
Auth::check()
Auth::get_username()
## License
MIT License. See LICENSE.