pckg / auth
Provides basic functionality for authentication and authorization users in database, on Twitter, Facebook and with OAuth2 standard
Installs: 5 141
Dependents: 9
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- ext-json: *
- facebook/graph-sdk: 5.*
- pckg/framework: dev-master || dev-master-yoda
Requires (Dev)
- facebook/facebook-instant-articles-sdk-php: dev-master
- league/oauth2-client: ^2.6
- pckg-app/api: dev-master
- pckg-app/frontend-dev: dev-master
- pckg/concept: dev-master
- pckg/htmlbuilder: dev-master
- pckg/mail: dev-master
- pckg/manager: dev-master
- pckg/migrator: dev-master
This package is auto-updated.
Last update: 2024-10-15 20:11:19 UTC
README
Install
Add provider \Pckg\Auth\Provider\Auth::class
to your App provider.
Add migration \Pckg\Auth\Migration\CreateAuthTables::class
to your migrations.php
config.
Migrate $ php console yourApp migrator:install --repository=default --clean
Create godfather $ php console auth auth:create-godfather your@email.com
Add provider to your config 'default' => [ 'type' => \Pckg\Auth\Service\Provider\Database::class, 'entity' => \OpenCode\OAuth2\Entity\Users::class, ],