PHPackages                             spider/spider - 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. spider/spider

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

spider/spider
=============

Simple and flexible graph database abstraction.

v0.3.2(10y ago)21374[8 issues](https://github.com/spider/spider/issues)MITPHPPHP &gt;=5.4.0

Since Apr 28Pushed 7y ago7 watchersCompare

[ Source](https://github.com/spider/spider)[ Packagist](https://packagist.org/packages/spider/spider)[ Docs](https://github.com/spider/spider)[ RSS](/packages/spider-spider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (11)Used By (0)

Spider Graphs
=============

[](#spider-graphs)

This project and organization are abandond. If you want to take this over or want github username, open an issue.
=================================================================================================================

[](#this-project-and-organization-are-abandond-if-you-want-to-take-this-over-or-want-github-username-open-an-issue)

[![Managed with ZenHub!](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io)[![Join the chat at https://gitter.im/spider/spider](https://camo.githubusercontent.com/b2c02c8da521a4c9443be521bbc6fb4750d548cf2c3b349a85e6fa82cd0295e3/68747470733a2f2f6261646765732e6769747465722e696d2f7370696465722f7370696465722e737667)](https://gitter.im/spider/spider?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Latest Version](https://camo.githubusercontent.com/eff1004c8a68640abd84a4fd459a9d6e40663ffc216c9708dc37b29ec457a523/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7370696465722f7370696465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/spider/spider/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/bf032cc8e9c9513f3a783027da7803e1464fdfa19f1b6c748ed157bffef3edbc/68747470733a2f2f7472617669732d63692e6f72672f7370696465722f7370696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/spider/spider)[![Coverage Status](https://camo.githubusercontent.com/a94da094254e0c52de1c96fcefeb053e93405567ce15fdf9228dc1649e3b6e5b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7370696465722f7370696465722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/spider/spider?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b7175ebdcddaabee374020430da40433684b4f2d7b0adede5e725acbc2f5202/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370696465722f7370696465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/spider/spider/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/60c263beea2c0099ffdd86f6aa9a67d596ab39a6790a048b30bf89a20e8fae16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370696465722f7370696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spider/spider)

[![SensioLabsInsight](https://camo.githubusercontent.com/668a9e28e2eef7b4e2ecbba76f43a7a7344cbbed0fc881d48c319db58c0d3eab/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64633733383035652d326135382d343030372d613439652d3530363238316533303963652f6269672e706e67)](https://insight.sensiolabs.com/projects/dc73805e-2a58-4007-a49e-506281e309ce)

A simple, flexible, and beautiful graph-data abstraction for php.

Why "Spider?" Because spiders crawl over webs, and webs look like graphs. Walk your data.

This readme is very limited. See **[the full documentation](http://spider-ogm.readthedocs.org/en/latest/)** for a guidebook.

Current Version
---------------

[](#current-version)

Spider is still under active development. All releases are well-tested and stable, though maybe not ready for production yet. The current version is v0.3.0 - which includes a basic command builder, connections, and drivers. For a roadmap see [the full documentation](http://spider-ogm.readthedocs.org/en/latest/). Please use spider anywhere you can and open issues around bugs or edge cases.

Goals
-----

[](#goals)

- Framework agnostic, community-driven with best practices.
- Made *specifically* for highly-relational data.
- An easy transition from SQL or Mongo.
- Simple, fluent, and consistent API.
- Simple drivers to connect to specific graph databases or other datastores.
- Extensible and configurable.

Current Features
----------------

[](#current-features)

- Drivers for Gremlin Server, Neo4j, and OrientDB.
- Easily [create your own one-class drivers](create-driver.md).
- Fluent [Query Builder](command-builder.md) and Basic [Command Builder](command-builder.md).
- Handle, cache, and manage multiple [connections](getting-started.md).
- Consistent responses with various [formats](responses.md).

Upcoming Features
-----------------

[](#upcoming-features)

- Fluent traversals through the query and command builder.
- Database agnostic Schema Builder.
- Simple yet powerful Models and Object Graph Mappers
- Graph data utilities (algorithms, etc.).
- SSL support, data-binding, filters, validation, caching, logging, and more.
- Extensible so you can use your own loggers, cachers, etc.

Setup and Basic Usage
---------------------

[](#setup-and-basic-usage)

Install via Composer

```
$ composer require spider/spider
```

The `master` branch contains stable code, though not necessarily ready for production. The `develop` branch is a step ahead and may me unstable right now.

The simplest thing to do from there is use the query builder

```
$connection = new Connection([
    'driver' => 'neo4j'
    'hostname' => 'localhost'
    'port' => 7474,
    'username' => 'root',
    'password' => 'root'
]);

$query = new Spider\Commands\Query($connection);

$characters = $query
    ->select('name, position, catch_phrase')
    ->from('characters')
    ->where('show', 'Firefly')
    ->orderBy('name')
    ->all();

foreach ($characters as $character) {
    $character->name; // Wash
    $character->position; // Pilot
    $character->catch_phrase; // "I am a leaf on the wind."
}
```

Of course, there's a lot more you can do. Check out **[the full documentation](http://spider-ogm.readthedocs.org/)**.

Inspired By
-----------

[](#inspired-by)

- [Eloquent ORM](http://laravel.com/docs/5.0/eloquent)
- [Hibernate OGM](http://hibernate.org/ogm/)
- [Propel ORM](http://propelorm.org)
- [Neo4j Client](https://github.com/neoxygen/neo4j-neoclient)
- [Bulbflow](http://bulbflow.com/)

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](contributing.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

### Credits

[](#credits)

- [Michael Wilson](https://github.com/chrismichaels84)
- [PommeVerte](https://github.com/PommeVerte)
- Open an issue to join in!

### License

[](#license)

The MIT License (MIT). Please see [License File](license.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~25 days

Total

6

Last Release

3875d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6737bd5ffc92de869a9c8bc96bee45c5e8b802393e9c7b8b0d55b951aef4166c?d=identicon)[chrismichaels84](/maintainers/chrismichaels84)

---

Top Contributors

[![electricjones](https://avatars.githubusercontent.com/u/5412413?v=4)](https://github.com/electricjones "electricjones (199 commits)")[![dmill-bz](https://avatars.githubusercontent.com/u/1415875?v=4)](https://github.com/dmill-bz "dmill-bz (32 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

databaseormneo4jogmgraphsorientdbtinkerpopgremlin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spider-spider/health.svg)

```
[![Health](https://phpackages.com/badges/spider-spider/health.svg)](https://phpackages.com/packages/spider-spider)
```

###  Alternatives

[vinelab/neoeloquent

Laravel wrapper for the Neo4j graph database REST interface

65393.1k1](/packages/vinelab-neoeloquent)[hirevoice/neo4jphp-ogm

Doctrine2-style entity mapper for Neo4j graph database

15918.6k1](/packages/hirevoice-neo4jphp-ogm)[friendsofsymfony1/doctrine1

PHP Database ORM for Symfony1. Do NOT use for new projects: please move to a newest Symfony release and Doctrine2

40581.8k](/packages/friendsofsymfony1-doctrine1)[artdarek/neo4j-4-laravel

Neo4j for Laravel 4.

282.4k](/packages/artdarek-neo4j-4-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
