GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — php-example-applications/php-magic-link-example at main · workos/php-example-applications

Expand file tree

/

php-magic-link-example

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

php-magic-link-example

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
static
static
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
router.php
router.php
 
 

README.md

Outline

php-magic-link-example

An example PHP app demonstrating Magic Link with the WorkOS PHP SDK.

Dependencies

Composer - Link

Setup

  1. Clone the repo and install the dependencies by running the following:

    git clone [email protected]:workos/php-example-applications
    cd php-example-applications/php-magic-link-example
    composer i
  2. Follow the instructions here on setting up Magic Link.

  3. Create a new file called .env and enter your API Key and Client ID from the WorkOS Dashboard.

WORKOS_API_KEY="your_api_key"
WORKOS_CLIENT_ID="your_client_id"

Running the app

Use the following command to run the app:

php -S localhost:8000 router.php

Once running, you'll be prompted for an email address, simply plug this in and you'll be sent a magiclink that will redirect you to a success page.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.