PHPackages                             the-don-himself/twitter-graph - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. the-don-himself/twitter-graph

ActiveLibrary[Database &amp; ORM](/categories/database)

the-don-himself/twitter-graph
=============================

An example graph database implementation of Twitter using the Gremlin OGM library.

v0.4.0(6y ago)26MITPHPPHP ^7.2

Since Dec 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/The-Don-Himself/twitter-graph)[ Packagist](https://packagist.org/packages/the-don-himself/twitter-graph)[ RSS](/packages/the-don-himself-twitter-graph/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

twitter-graph
=============

[](#twitter-graph)

Sample code of an example graph database implementation of Twitter using the [The-Don-Himself/gremlin-ogm](https://github.com/The-Don-Himself/gremlin-ogm) library.

Create A Schema
---------------

[](#create-a-schema)

Note: Not all gremlin compatible databases support schemas, in the event you are using one just skip this part.

First we deal with vertexes (a few places I called them vertices, similar to indices and indexes)

### Vertexes

[](#vertexes)

```
