PHP code example of silverday / nexus-dropin-user
1. Go to this page and download the library: Download silverday/nexus-dropin-user 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/ */
silverday / nexus-dropin-user example snippets
'mail_transport' => 'smtp',
'smtp_host' => 'smtp.example.com',
'smtp_port' => 587,
'smtp_username' => 'smtp-user',
'smtp_password' => 'smtp-password',
'smtp_encryption' => 'tls', // tls|ssl|none
'smtp_timeout_seconds' => 10,
'verification_link_template' => 'https://app.example.com/verify-email?token={{token}}',
'admin_registration_notify_to' => '[email protected] ,[email protected] ',
'email_template_locale' => 'de-DE',
'email_template_roots' => [
__DIR__ . '/../../templates/email',
'/opt/myapp/mail-templates',
],
'email_templates' => [
'verify_email' => [
'subject' => 'Please verify your account',
'text' => "Hi {{real_name}},\n\nYour verification token: {{token}}",
],
],
bash
export NEXUS_DB_DSN='mysql:host=127.0.0.1;port=3306;dbname=nexus_user;charset=utf8mb4'
export NEXUS_DB_USER='root'
export NEXUS_DB_PASS=''
bash
php migrations/run.php
bash
php -S 127.0.0.1:8080 examples/minimal_router.php
bash
php migrations/run.php
bash
php -S 127.0.0.1:8081 examples/module_webapp.php
bash
NEXUS_CONFIG_FILE=/absolute/path/to/your.config.php php -S 127.0.0.1:8081 examples/module_webapp.php
bash
php migrations/run.php /path/to/your/module.config.php
bash
php -S 127.0.0.1:8090 examples/host_app_bootstrap.php