public
Description: PHP Lifestream Aggregator, built with Zend Framework
Homepage: http://blog.johannilsson.me/tagged/phplifestream
Clone URL: git://github.com/johannilsson/phplifestream.git
Johan Nilsson (author)
Fri Mar 27 00:10:29 -0700 2009
commit  c9d2c52b71b6bee456cd9b1dcfb00a7471c3e250
tree    c4f6db912c875cdfaff5bf636788a368ebe38df2
parent  f2cc58778e1ad12e056e639231e1d47dd274f263
name age message
file .gitignore Thu Mar 26 14:42:39 -0700 2009 Modified order. [johannilsson]
file CHANGELOG Fri Mar 27 00:10:29 -0700 2009 Reverted to previous calculation. [Johan Nilsson]
file README.markdown Wed Mar 25 12:25:56 -0700 2009 updated [johannilsson]
file VERSION Sun Jan 18 08:32:23 -0800 2009 changelog and version [johannilsson]
directory app/ Fri Mar 27 00:10:29 -0700 2009 Reverted to previous calculation. [Johan Nilsson]
file build.xml Sun Jan 04 14:32:06 -0800 2009 added library to the build script [johannilsson]
directory db/ Sun Jan 18 05:21:45 -0800 2009 Updated schema with tags [johannilsson]
file deploy_env.properties.example Thu Mar 26 14:44:52 -0700 2009 Added profiler that output page execution time ... [johannilsson]
directory library/ Thu Mar 26 14:52:32 -0700 2009 Added comments [johannilsson]
directory log/ Tue Jan 06 03:11:25 -0800 2009 Added log dir [johannilsson]
file phplifestream-conf.php.example Wed Jan 07 08:35:37 -0800 2009 Added conf examples [Johan Nilsson]
directory public/ Mon Mar 23 09:09:31 -0700 2009 Added disqus feed icon. [Johan Nilsson]
directory tmp/ Thu Mar 26 14:41:37 -0700 2009 Added a tmp dir [johannilsson]
README.markdown

PHPLifestream

PHPLifestream aggregates and provides graphs of your activities around the internet.

  • Easy to extends with new aggregators and services
  • Aggregates any Atom and RSS feed
  • Atom and tags is extracted from feeds
  • Atom and RSS for aggregated items
  • Admin with openid login
  • Built with Zend Framework

Live example is availabe at http://www.johannilsson.me

Contact me on Twitter if you have any suggestions, like it or dont like it http://twitter.com/johanni

Installation

  • Download zend framework
  • Point the document root to /path/to/phplifestream/public
  • Add zend framework to the include path
  • Log files is located in /path/to/phplifestream/log you might need to chmod this directory.
  • Edit the file /path/to/phplifestream/app/conf/app.ini
  • Add services to aggregate at http://example.com/services
  • Add cron job to aggregate added services.

Cron job for aggregation

Setup the cron job for aggregation. The example will run every 5 minute change it to whatever suits you best.

*/5 * * * * php /path/to/phplifestream/app/jobs/aggregate.php >> /dev/null

In production make sure that the directory where the phplifestream-conf.php is is in the include path for an easy way to set environment.

*/5 * * * * php -d include_path="/path/to/phplifestream/" /path/to/phplifestream/app/jobs/aggregate.php

phplifestream-conf.php

This file makes it easier to add the include path and choose the application environment. Rename the file phplifestream-conf.php.example to phplifestream-conf.php. Add the path to zend framework and choose your environment you can choose between 'devlopment' and 'production'.

deploy_env.properties

Instead of editing the app.ini settings you can edit the options via deploy_env.properties. Rename the file deploy_env.properties.example into deploy_env.properties.

When running the ant target 'package' these options are applied to the production properties in the app.ini file. The project file structure is then copied to and prepared with production settings to the 'dist' directory. A tar ball is also created in this directory. Just for you to deploy.

Todo

  • Admin Admin
  • Ideas?
  • Fix TODO marks in the code.

Credits