Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadowhand/mvc-example
An example of modern MVC with clean separation
https://github.com/shadowhand/mvc-example
Last synced: 11 days ago
JSON representation
An example of modern MVC with clean separation
- Host: GitHub
- URL: https://github.com/shadowhand/mvc-example
- Owner: shadowhand
- License: mit
- Created: 2017-03-14T16:54:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T05:06:16.000Z (over 7 years ago)
- Last Synced: 2024-12-25T05:57:39.328Z (17 days ago)
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 23
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MVC Examples
Examples for the talk [MVC to ADR](https://github.com/shadowhand/mvc-to-adr-talk):
- Github login via [oauth2-github](https://github.com/thephpleague/oauth2-github)
- Show a list of your repos
- Show a list of your followers
- Show a list of your stars## Using
Install all dependencies:
```php
composer install
```[Register a new application](https://github.com/settings/applications/new) 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
php -S localhost:8000 -t public public/index.php
```Open and login.
## License
MIT License.