PHPackages                             moazam/odata-client - 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. [API Development](/categories/api)
4. /
5. moazam/odata-client

ActiveLibrary[API Development](/categories/api)

moazam/odata-client
===================

Saint Systems OData Client for PHP

09PHP

Since Dec 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/moazam1/odata-client-php)[ Packagist](https://packagist.org/packages/moazam/odata-client)[ RSS](/packages/moazam-odata-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Get started with the OData Client for PHP
=========================================

[](#get-started-with-the-odata-client-for-php)

A fluent library for calling OData REST services inspired by and based on the [Laravel Query Builder](https://laravel.com/docs/5.4/queries).

*This library is currently in preview. Please continue to provide [feedback](https://github.com/saintsystems/odata-client-php/issues/new) as we iterate towards a production-supported library.*

[![Build Status](https://camo.githubusercontent.com/c5779c53e769e78f70389f2bf57725a3009253d27f64e576368318f0d8f5a543/68747470733a2f2f7472617669732d63692e6f72672f7361696e7473797374656d732f6f646174612d636c69656e742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/saintsystems/odata-client-php)

Install the SDK
---------------

[](#install-the-sdk)

You can install the PHP SDK with Composer.

```
{
    "require": {
        "saintsystems/odata-client": "0.1.*"
    }
}

```

### Call an OData Service

[](#call-an-odata-service)

The following is an example that shows how to call an OData service.

```
use SaintSystems\OData;

class UsageExample
{
    $odataServiceUrl = 'http://services.odata.org/V4/TripPinService';

    $odataClient = new ODataClient($odataServiceUrl);

    // Retrieve all entities from the "People" Entity Set
    $people = $odataClient->from('People')->get();

    // Or retrieve a specific entity by the Entity ID/Key
    $person = $odataClient->from('People')->find('russellwhyte');
    echo "Hello, I am $person->FirstName ";

    // Want to only select a few properties/columns?
    $people = $odataClient->from('People')->select('FirstName','LastName')->get();
}
```

Develop
-------

[](#develop)

### Run Tests

[](#run-tests)

Run `vendor/bin/phpunit` from the base directory.

Documentation and resources
---------------------------

[](#documentation-and-resources)

- [Documentation](https://github.com/saintsystems/odata-client-php/blob/master/docs/index.html)
- [Wiki](https://github.com/saintsystems/odata-client-php/wiki)
- [Examples](https://github.com/saintsystems/odata-client-php/wiki/Example-calls)
- [OData website](http://www.odata.org)
- [OASIS OData Version 4.0 Documentation](http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html)

Issues
------

[](#issues)

View or log issues on the [Issues](https://github.com/saintsystems/odata-client-php/issues) tab in the repo.

Copyright and license
---------------------

[](#copyright-and-license)

Copyright (c) Saint Systems, LLC. All Rights Reserved. Licensed under the MIT [license](LICENSE).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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/a711f524bd345cd7be6ab4e9dc5e03dc9ccf45bdc528c1597e55a6e48bed98c1?d=identicon)[moazam](/maintainers/moazam)

---

Top Contributors

[![anderly](https://avatars.githubusercontent.com/u/573151?v=4)](https://github.com/anderly "anderly (25 commits)")[![Zeromax](https://avatars.githubusercontent.com/u/1867177?v=4)](https://github.com/Zeromax "Zeromax (7 commits)")[![moazam1](https://avatars.githubusercontent.com/u/5168122?v=4)](https://github.com/moazam1 "moazam1 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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