Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

hrphp/portal

Repository files navigation

Hampton Roads PHP Portal

Travis branch Coverage Status Code Quality

Introduction

This is the code behind http://hrphp.org, the Hampton Roads PHP user group's website. It is powered by ZF2.

Installation

Build the project

In order to build this project, you'll need install both Node.js and Composer. Fork and clone the repository to install it locally, then run the following to install the needed dependencies and run the build:

cd my/project/dir
git clone git://github.com/username/portal.git hrphp-portal
cd hrphp-portal
composer self-update && composer install
./vendor/bin/phing build 

Define environment variables

In order to connect to some of the services used by this site, you'll need to define the following environment variables:

MEETUP_API_KEY (view your API key at https://secure.meetup.com/meetup_api/key/)
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_OAUTH_ACCESS_TOKEN
TWITTER_OAUTH_ACCESS_TOKEN_SECRET

View the site locally

The simplest way to get started is to start the internal PHP cli-server in the root directory:

php -S 0.0.0.0:8080 -t public/ public/index.php

This will start the cli-server on port 8080, and bind it to all network interfaces.