odata client php
0.7.4
Laravel Query Builder에서 영감을 얻은 Odata Rest Services를 호출하기위한 유창한 라이브러리.
이 라이브러리는 현재 미리보기에 있습니다. 생산 지원 라이브러리를 반복 할 때 피드백을 계속 제공하십시오.
WordPress 사용자의 경우 Gravity Forms Dynamics 365 애드온을 참조하십시오.
작곡가로 PHP SDK를 설치할 수 있습니다.
composer require saintsystems/odata-client
다음은 Odata 서비스를 호출하는 방법을 보여주는 예입니다.
<?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 (); 기본 디렉토리에서 vendor/bin/phpunit 실행하십시오.
선적 서류 비치
위키
예
Odata 웹 사이트
오아시스 ODATA 버전 4.0 문서
Repo의 문제 탭에서 문제를 보거나 로그인합니다.
저작권 (C) Saint Systems, LLC. 모든 권리 보유. MIT 라이센스에 따라 라이센스.