https://github.com/chadxz/github-profile-php
PHP example of rendering github profile data
https://github.com/chadxz/github-profile-php
Last synced: 2 months ago
JSON representation
PHP example of rendering github profile data
- Host: GitHub
- URL: https://github.com/chadxz/github-profile-php
- Owner: chadxz
- License: mit
- Created: 2019-03-12T01:50:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T02:57:12.000Z (about 6 years ago)
- Last Synced: 2025-02-10T20:30:41.254Z (4 months ago)
- Language: PHP
- Size: 226 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-profile-php
[![Build Status][Build Status Image]][Build Status Link]
[![Codecov][Codecov Image]][Codecov Link][Build Status Image]: https://travis-ci.org/chadxz/github-profile-php.svg?branch=master
[Build Status Link]: https://travis-ci.org/chadxz/github-profile-php
[Codecov Image]: https://img.shields.io/codecov/c/github/chadxz/github-profile-php.svg
[Codecov Link]: https://codecov.io/gh/chadxz/github-profile-phpPlayground for messing with php.
Inspired by
[https://github.com/wemake-services/meta/issues/7](https://github.com/wemake-services/meta/issues/7)### development
```
$ make dev
$ open http://localhost:8000
```This will run the application, mounting your local source into the Docker
container and enabling xdebug. Configure your IDE to listen for xdebug
connections to receive breakpoints.### deployment
This repository will automatically deploy to heroku at
[https://github-profile-php.herokuapp.com/](https://github-profile-php.herokuapp.com/)
when commits are pushed to master.To do a manual deploy, install the heroku cli, add the remote, and push:
```
$ brew install heroku/brew/heroku
$ git remote add heroku [email protected]:github-profile-php.git
$ git push heroku master
```The following environment variables should be configured:
- **GITHUB_CLIENT_ID**: The client id of the Github App to use for this app
- **GITHUB_CLIENT_SECRET**: The client secret of the Github App to use for this appThe Github App should be configured with the "User authorization callback" set
to the base url of your app, with the path of `/github/auth-callback`
### herokuThe heroku app must have `runtime-new-layer-extract` lab enabled to work around
a bug with the way heroku treats apache docker containers. Enable this with:```
heroku labs:enable --app=github-profile-php runtime-new-layer-extract
```