PHPackages                             rdrei/odata - 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. rdrei/odata

ActiveLibrary

rdrei/odata
===========

A simple PHP OData Client

v0.0.1(6y ago)130MITPHPPHP &gt;=7.1CI failing

Since Sep 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/r-drei/php-odata)[ Packagist](https://packagist.org/packages/rdrei/odata)[ RSS](/packages/rdrei-odata/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

rdrei/odata
===========

[](#rdreiodata)

[![travis-ci](https://camo.githubusercontent.com/2eb6bae53202846a14f0b7ba51310e910eccee18b228d8f9a01b2ffd872b212a/68747470733a2f2f7472617669732d63692e6f72672f722d647265692f7068702d6f646174612e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/2eb6bae53202846a14f0b7ba51310e910eccee18b228d8f9a01b2ffd872b212a/68747470733a2f2f7472617669732d63692e6f72672f722d647265692f7068702d6f646174612e7376673f6272616e63683d6d6173746572)[![Latest Stable Version](https://camo.githubusercontent.com/61e1dad7beadb24d50c989399942f35e67582301bea15f543ecc502aa4324d39/68747470733a2f2f706f7365722e707567782e6f72672f72647265692f6f646174612f762f737461626c65)](https://packagist.org/packages/rdrei/odata)[![Total Downloads](https://camo.githubusercontent.com/301aff6dac8f8c18e553dd2900490fab5867582bb3148e36cca55e66e0a60fc5/68747470733a2f2f706f7365722e707567782e6f72672f72647265692f6f646174612f646f776e6c6f616473)](https://packagist.org/packages/rdrei/odata)[![License](https://camo.githubusercontent.com/fd1cdd6a1b51c314503f5f637e72fa305cb7275dbe3c5ff74aec1885eeaa6e88/68747470733a2f2f706f7365722e707567782e6f72672f72647265692f6f646174612f6c6963656e7365)](https://packagist.org/packages/rdrei/odata)

A small PHP OData Client based on [guzzlehttp](https://github.com/guzzle/guzzles).

Install
-------

[](#install)

```
    composer require rdrei/odata
```

Usage
-----

[](#usage)

Import the ODataClient

```
    use \rdrei\odata\ODataClient;
    use \rdrei\odata\ODataQuery;
```

Create a ODataClient and a EntityHandler.

```
    $client = new ODataClient([
        'url' => "https:///"
    ]);

    $entityHandler = $client->CreateHandler("EntityName");
```

### Get

[](#get)

Get Enitities with a Query.

```
    $query = new ODataQuery();
    $query = $query->skip(0)->take(10);

    $result = $entityHandler->Get($query);
```

### Insert

[](#insert)

Create a new Entity.

```
    $entityHandler->Insert($entity);
```

### Update

[](#update)

Patch a Entity.

```
    $entityHandler->Update($key, $entity);
```

### Delete

[](#delete)

Remove a Entity by Key.

```
    $entityHandler->Delete($key);
```

Run Test
--------

[](#run-test)

```
    git clone ...
    composer install
    ./vendor/bin/phpunit
```

Documentation and Ressources
----------------------------

[](#documentation-and-ressources)

- [OData.org](http://www.odata.org)
- [OData v4 Reference Services (R/W)](https://services.odata.org/v4/TripPinServiceRW/$metadata)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

2434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f45565fe056d8be7204bdd0fc790ec35541fbbd55226590c64b9dd1a95dcaec8?d=identicon)[r-drei](/maintainers/r-drei)

---

Top Contributors

[![rriverak](https://avatars.githubusercontent.com/u/7319154?v=4)](https://github.com/rriverak "rriverak (10 commits)")

---

Tags

odata-clientphp-libraryphp7clientquery builderodata

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[gmostafa/php-graphql-client

GraphQL client and query builder.

3217.6M25](/packages/gmostafa-php-graphql-client)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)

PHPackages © 2026

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