Force Directed Positioning with PHP, SVG, and HTML

I recently released a proof-of-concept library for drawing force directed graphs with PHP. Right now, it is absurdly simple and has a few quirks, but it gets the job done. It’s original purpose is for visualizing search results within a controlled vocabulary, although I can imagine other uses.

Right now, it will only properly function in browers that support the <canvas> tag, although that will change in a couple of weeks. I also hope to implement a few parsers to make it easier to create graphs (I’m thinking RDF and dot will be sufficient). There’s also some necessary performance enhancements before it can be considered production-ready.

You can download the files here or see the library in context at the bvault repository on launchpad.

This work is inspired by the JSViz library which renders forced directed graphs on the client side using javascript.

Posted in Uncategorized.

Tagged with , .


2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Xabier says

    Hi,
    the link is broken (http://d-archive.com/~chris/graph.tar.gz)
    could you check it please.
    Thanks! (I’m looking for exactly that)

    • chris says

      Hey, sorry about that — looks like that file didn’t make it back up. I’ll have to do some work to re-package it, but I’ll probably end up improving it some too..



Some HTML is OK

or, reply to this post via trackback.