pckg / auth
Provides basic functionality for authentication and authorization users in database, on Twitter, Facebook and with OAuth2 standard
dev-next-8.0
2022-12-09 19:32 UTC
Requires
- ext-json: *
Requires (Dev)
- defuse/php-encryption: ^2.0
- league/oauth2-client: ^2.6
- pckg-app/api: dev-next-8.0 as dev-master
- pckg-app/frontend-dev: dev-next-8.0 as dev-master
- pckg/collection: dev-next-8.0 as dev-master
- pckg/concept: dev-master
- pckg/database: dev-next-8.0 as dev-master
- pckg/framework: dev-next-8.0 as dev-master
- pckg/htmlbuilder: dev-next-8.0 as dev-master
- pckg/mail: dev-master
- pckg/manager: dev-next-8.0 as dev-master
- pckg/migrator: dev-next-8.0 as dev-master
Replaces
- pckg-app/frontend: dev-next-8.0 as dev-master
This package is auto-updated.
Last update: 2026-03-15 23:18:27 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, ],