承接 bison-digital/odata-client-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bison-digital/odata-client-php

最新稳定版本:0.1.3

Composer 安装命令:

composer require bison-digital/odata-client-php

包简介

OData Client Library for PHP

README 文档

README

Lightweight library designed to make calling OData REST services in PHP applications easy.

The SDK is designed to around PSR 7 (Message) and 18 (Client) to allow for ultimate flexibility of implimentation. It is using Guzzles implementation of PSR-7 Request internally but is compatible with any PSR-18 Client.

Latest Version

Requirements

  • PHP ^8.1

Install

composer require bison-digital/odata-client-php

Example Usage

use BisonDigital\Odata\DTO\Query;
use BisonDigital\Odata\DTO\Table;
use BisonDigital\Odata\Service\OdataService;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Uri;


$oDataService = new OdataService(
  new Client(),
  new Uri('https://services.odata.org/V4/(S(ka3ts5ohyioxa1fcbdcb0jub))/TripPinServiceRW')
);

$query = (new Query())
    ->select('FirstName', 'LastName')
    ->filterString('UserName', 'willieashmore', 'contains')
    ->orderBy('Concurrency')
;

$oDataService->query(new Table('People'), $query);

Issues

Please report any issues using the issues tab in this repository.

All pull requests and suggestions are welcome.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-22