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.
Bootstrapping the application
I’ll use Silex, Twig, Bootstrap and NeoClient to build the application.
Create a directory for the app. I named mine spsocial
.
Add these lines to your composer.json
and run composer install
to install the dependencies :
{
"require": {
"silex/silex": "~1.1",
"twig/twig": ">=1.8,<2.0-dev",
"symfony/twig-bridge": "~2.3",
"neoxygen/neoclient": "~2.0.0"
},
"autoload": {
"psr-4": {
"Ikwattro\\SocialNetwork\\": "src"
}
}
}
You can download and install Bootstrap to the web/assets
folder of your project.
You can find the bootstrap demo app here as well: http://ift.tt/19oEjCH
Continue reading %Adding Social Network Features to a PHP App with Neo4j%
by Christophe Willemsen via SitePoint
No comments:
Post a Comment