PHP code example of websk / php-auth

1. Go to this page and download the library: Download websk/php-auth library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

websk / php-auth example snippets

shell
composer 
shell
  mkcert php-auth.devbox
  
shell
  cp config/config.example.php config/config.php
  
shell
  docker compose exec php-fpm composer install
  
shell
  docker compose exec php-fpm php vendor/bin/websk_db_migration.php migrations:migration_auto
  
shell
  docker compose exec php-fpm php vendor/bin/websk_db_migration.php migrations:migration_handle
  
shell
  docker compose exec php-fpm php bin/websk_auth_create_user.php auth:create_user