qeti/simple-podata

Library for simple use OData with POData library

v0.9.7 2015-09-26 04:55 UTC

This package is auto-updated.

Last update: 2024-04-21 01:13:29 UTC


README

What is this?

Implementation of DataService and QueryProvider classes, what helps to make easy start with OData.

Who is using it?

  • It's instrument for PHP developers, who want use OData with minimum efforts.

Installation

PHP 5.4 or higher is required to use it.

Installation is recommended to be done via composer. Add the following to the require and repositories sections in composer.json of Yii2 project:

    "require": {
       "qeti/SimplePOData": ">=0.9.1"
    }

Run composer update afterwards.

Usage

TODO: to be documented

Try to open links:

  • http:///odata.svc/$metadata

  • http:///odata.svc/Products?$format=json&$skip=1&$top=14&$inlinecount=allpages&$filter=code eq 'book'

  • http:///odata.svc/Products/$count?&$filter=code eq 'book'

  • http:///odata.svc/Products(2465)

For more details about URL format, see OData documentation.

Am I free to use this?

This library is open source and licensed under the MIT License. This means that you can do whatever you want with it as long as you mention my name and include the license file. Check the license for details.

Contact

Feel free to contact me using email.