qeti / simple-podata
Library for simple use OData with POData library
Requires
- php: >=5.4.0
- qeti/podata: >=0.9
This package is auto-updated.
Last update: 2024-12-21 02:29:37 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.