2015年2月18日星期三

SitePoint PHP Blog: Adding Social Network Features to a PHP App with Neo4j


The SitePoint PHP blog continues their series about combining PHP and the Neo4j graph database with part two, adding social features to the code they created in part one.



In the last part, we learned about Neo4j and how to use it with PHP. In this post, we'll be using that knowledge to build a real Silex-powered social network application with a graph database.


Author Christophe Willemsen dives right back into the code showing how to get the basic application up and running (using Silex, Twig, Bootstrap and the NeoClient). He loads the PHP libraries up via Composer and injects the NeoClient instance into the application. He includes the view and controller handling for each of the pages:



  • a main all user list
  • showing who a user follows
  • listing suggested users (who to follow)
  • adding a relationship


Screenshots are also included to show the example output along with all the code you'll need.


Link: http://www.sitepoint.com/adding-social-network-features-php-app-neo4j/

没有评论:

发表评论