#Me
- Paul Giberson
- Applications Architect @ Socious [socious.com]
- PHP for 6 years, "PHP" for 3 years prior
##Idea
- Appeal to attendees = twitter
- Word cloud of #zendcon (graphical representations of data are awesome)
##Start-Up
###Local
- Windows x64
- PHP 5.6 - http://windows.php.net
- Built-In Webserver
- Sublime Text 3
php.exe -S 0.0.0.0:80 -t [docroot]
- Wanted to use composer for slim - www.slimframework.com
- http://getcomposer.org - install
could not install composer because ssl wasn't enabled
- fixed in php.ini (enabled extension)
composer require slim/slim
##Build app
###Frontend
- boostrap - http://bootswtach.com
- jQuery - jQuery 1.11.1
###Backend
- PHP / Slim
####Blueshift
- install cloudfoundary
- hunt for zendserver build pack (found manifest.yml in github repo)
- fight trying to figure out how to configure document root
- give up, restructure code
- app is essentially live on bluemix
##Add twitter
Twitter doesn't allow anonymous api requests as of api V1.1
- Find library - https://github.com/J7mbo/twitter-api-php
- Create application in twitter
- implement code
###Code doesn't work
- Windows bug with ssl - J7mbo/twitter-api-php#58 (comment)
###Got a response from twitter
fall asleep at 2 a.m.
###find a frontend
- highcharts - http://highcharts.com
- d3.js - http://d3js.org
d3.js is the "new, cool" stuff, has a word cloud example
###d3.js
- import plugin
- learn tinyest bit of svg to fix layout issues, disect code
##Iterations
- set count of tweets recieved to 100 (default 15)
- remove "stop words" - http://wordsift.com/wordlists
- remove bad UTF-8 chars that were killing json_decode()
#Final Deploy
- Slim = overkill
- Would have liked to have been able to poll tweets from the entire conference
- Would have liked to have been able to do "real time" updates