Implementation of DataService and QueryProvider classes, what helps to make easy start with OData.
- It's instrument for PHP developers, who want use OData with minimum efforts.
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.
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.
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.
Feel free to contact me using email.