Skip to content

shadowhand/mvc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVC Examples

Examples for the talk MVC to ADR:

  • Github login via oauth2-github
  • Show a list of your repos
  • Show a list of your followers
  • Show a list of your stars

Using

Install all dependencies:

composer install

Register a new application with the following settings:

  • Homepage URL: http://localhost:8000/
  • Authorization callback URL: http://localhost:8000/login/complete

Then copy the Client ID and Secret into a .env file:

GITHUB_CLIENT_ID=abc
GITHUB_CLIENT_SECRET=xyz

Start a local development server:

php -S localhost:8000 -t public public/index.php

Open http://localhost:8000/ and login.

License

MIT License.

About

An example of modern MVC with clean separation

Resources

License

Stars

Watchers

Forks

Packages

No packages published