justbetter/odata-client
Composer 安装命令:
composer require justbetter/odata-client
包简介
Saint Systems OData Client for PHP
README 文档
README
A fluent library for calling OData REST services inspired by and based on the Laravel Query Builder.
This library is a fork of saintsystems/odata-client. The maintainer seems to have abandoned the repo. We will maintain this fork and accept new PR's
Looking for a way to interact with Microsoft Dynamics? Checkout our Laravel Dynamics Client!
Install the SDK
You can install the PHP SDK with Composer.
composer require justbetter/odata-client
Call an OData Service
The following is an example that shows how to call an OData service.
<?php require_once __DIR__ . '/vendor/autoload.php'; use SaintSystems\OData\ODataClient; class UsageExample { public function __construct() { $odataServiceUrl = 'https://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 try { $person = $odataClient->from('People')->find('russellwhyte'); echo "Hello, I am $person->FirstName "; } catch (Exception $e) { echo $e->getMessage(); } // Want to only select a few properties/columns? $people = $odataClient->from('People')->select('FirstName','LastName')->get(); } } $example = new UsageExample();
Develop
Run Tests
Run vendor/bin/phpunit from the base directory.
Documentation and resources
Issues
View or log issues on the Issues tab in the repo.
Copyright and license
Copyright (c) Saint Systems, LLC. All Rights Reserved. Licensed under the MIT license.
justbetter/odata-client 适用场景与选型建议
justbetter/odata-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25.08k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 07 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「rest」 「odata」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 justbetter/odata-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 justbetter/odata-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 justbetter/odata-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Saloon plugin providing a fluent, version-aware (v3 + v4) OData query builder and server-driven paginator.
A PSR-7 compatible library for making CRUD API endpoints
Expose Odata services from laravel
Api bundle
A robust, production-grade Laravel package for SAP Business One HTTP integration, supporting both OData and custom (non-OData) SAP Service Layer (SML) endpoints.
Framework-agnostic OData 4 query string parser for PHP. Parses $filter, $select, $expand, $orderby, and more into AST objects.
统计信息
- 总下载量: 25.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 9
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-25