PHPackages                             neo4j/pdo - 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. neo4j/pdo

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

neo4j/pdo
=========

73142PHP

Since Apr 28Pushed 12y ago3 watchersCompare

[ Source](https://github.com/jakewins/neo4j-pdo)[ Packagist](https://packagist.org/packages/neo4j/pdo)[ RSS](/packages/neo4j-pdo/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Neo4j PDO
=========

[](#neo4j-pdo)

[![Build Status](https://camo.githubusercontent.com/0ca2df1b55a1408b56c2619c813c53a220f7cda675897f03cbd5b09ee000cebf/68747470733a2f2f7472617669732d63692e6f72672f6a616b6577696e732f6e656f346a2d70646f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jakewins/neo4j-pdo)

This is a PHP Data Objects driver for the Neo4j graph database, it allows you to connect to a Neo4j server from PHP using the standard PDO API.

The project currently only implements a "vanilla" PHP implementation, which means you need to use a special constructor to create your PDO connection. PHP extensions to register the driver with PDO in HHVM and Zend VM are planned future work.

Installation
------------

[](#installation)

Neo4jPDO uses Composer, please checkout the [composer website](http://www.getcomposer.org) for more information.

To use Neo4j/PDO in your project, simply add it as a composer dependency:

```
"require": {
    "neo4j/pdo": "dev-master"
}

```

Minimum Viable Snippet
----------------------

[](#minimum-viable-snippet)

```
// Include dependencies installed with composer
require 'vendor/autoload.php';

$conn = new \Neo4j\Neo4jPDO("http://localhost:7474");

foreach($conn->query('MATCH (n) RETURN count(*) as count') as $row)
{
    echo $row['count'];
}

```

Please refer to the PDO documentation in the PHP manual for detailed documentation of the API.

Unsupported features
--------------------

[](#unsupported-features)

- PDO-&gt;lastInsertId: Neo4j does not provide this functionality.
- PDO-&gt;quote: Use parameterized queries instead
- PDOStatement-&gt;getColumnMeta: Not yet implemented
- PDOStatement-&gt;bindValue: Not yet implemented
- PDOStatement-&gt;bindColumn: Not yet implemented
- PDOStatement-&gt;fetch: Not yet implemented
- PDOStatement-&gt;fetchObject: Not yet implemented

Many of the PDO::FETCH\_\*\* flags are not yet supported, specifically, currently only PDO::FETCH\_BOTH is implemented.

License
-------

[](#license)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/722d601a6351181dd1190308fa4f829604213dabb2fe51bfcfba3738759d3040?d=identicon)[neo4j](/maintainers/neo4j)

![](https://avatars.githubusercontent.com/u/182752?v=4)[Jacob Davis-Hansson](/maintainers/jakewins)[@jakewins](https://github.com/jakewins)

---

Top Contributors

[![jakewins](https://avatars.githubusercontent.com/u/182752?v=4)](https://github.com/jakewins "jakewins (10 commits)")[![magnusnordlander](https://avatars.githubusercontent.com/u/165002?v=4)](https://github.com/magnusnordlander "magnusnordlander (3 commits)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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