PHPackages                             php-rexster/rexster - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. php-rexster/rexster

ActiveLibrary[HTTP &amp; Networking](/categories/http)

php-rexster/rexster
===================

PHP Rexster SDK

1.0(12y ago)36274MITPHPPHP &gt;=5.3.0

Since Dec 5Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ashwinks/PHP-Rexster)[ Packagist](https://packagist.org/packages/php-rexster/rexster)[ Docs](https://github.com/ashwinks/PHP-Rexster)[ RSS](/packages/php-rexster-rexster/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP-Rexster
===========

[](#php-rexster)

PHP SDK for the [Rexster REST API](https://github.com/tinkerpop/rexster/wiki/Basic-REST-API)

Usage
=====

[](#usage)

Create a graph object

```
$graph = new Graph('http://localhost:8182', 'testing');
```

Get a vertex from the graph by vertex id

```
$vertex = $graph->getVertex($vertex_id);
```

Get an edge from the graph by edge id

```
$edge = $graph->getEdge($edge_id);
```

Get a vertex by an indexed property or attribute

```
$vertex = $graph->getVertexByAttribute('name', $name);
```

Get all vertices with offsets for paging

```
$graph->setOffsetStart(5);
$graph->setOffsetEnd(10);
$vertices = $graph->getVertices();
```

Create a vertex

```
$vertex = new Vertex($graph);
$vertex->some_property = "some property";
$vertex->another_attribute = "haay";
$vertex->create();
```

Create an edge

```
$edge = new Edge($graph);
$e->some_property = 'edge name property';
$e->_inV = 4;
$e->_outV = 8;
$e->_label = "knows";
```

Create an in/out edges for a given vertex

```
$vertex = $graph->getVertex($vertex_id);
$vertex->createOutEdge($to_vertex_id, 'likes', $data);
$vertex->createInEdge($from_vertex_id, 'likes', $data);
```

Gremlin scripts

```
$gr = new Gremlin($g);
$response = $gr->runScript("g.v({$vertex_id}).out.path");
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4591d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/382665?v=4)[Ashwin Surajbali](/maintainers/ashwinks)[@ashwinks](https://github.com/ashwinks)

---

Top Contributors

[![teedot-ashwin](https://avatars.githubusercontent.com/u/5694960?v=4)](https://github.com/teedot-ashwin "teedot-ashwin (2 commits)")

---

Tags

apirestapi clientblueprintsrexsterrexster graph

### Embed Badge

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

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

###  Alternatives

[linkedinapi/linkedin

PHP LinkedIn SDK

100410.8k4](/packages/linkedinapi-linkedin)[wrapi/slack

Wrapper for Slack Web API

55280.1k2](/packages/wrapi-slack)[mediamonks/rest-api-bundle

MediaMonks Rest API Symfony Bundle

1656.2k1](/packages/mediamonks-rest-api-bundle)

PHPackages © 2026

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