OData Producer for PHP
This project is no longer maintained. We will not be accepting pull requests, addressing issues, nor making future releases., (*1)
The OData Producer Library for PHP is a server library that allows to exposes data sources by using the OData Protocol. The OData Producer supports all Read-Only operations specified in the Protocol version 2.0:, (*2)
Data is mapped to the OData Producer through three interfaces into an application. From there the data is converted to the OData structure and sent to the client. The 3 interfaces required are: * IDataServiceMetadataProvider: this is the interface used to map the data source structure to the Metadata format that is defined in the OData Protocol. Usually an OData service exposes a $metadata endpoint that can be used by the clients to figure out how the service exposes the data and what structures and data types they should expect. * IDataServiceQueryProvider: this is the interface used to map a client query to the data source. The library has the code to parse the incoming queries but in order to query the correct data from the data source the developer has to specify how the incoming OData queries are mapped to specific data in the data source. * IServiceProvider: this is the interface that deals with the service endpoint and allows defining features such as Page size for the OData Server paging feature, access rules to the service, OData protocol version(s) accepted and so on. * IDataServiceStreamProvider: This is an optional interface that can be used to enable streaming of content such as Images or other binary formats. The interface is called by the OData Service if the DataType defined in the metadata is EDM.Binary., (*3)
If you want to learn more about the PHP Producer Library for PHP, the User Guide included with the code (\docs directory) provides detailed information on how to install and configure the library, it also show how to implement the interfaces in order to build a fully functional OData service., (*4)
The library is built using only PHP and it runs on both Windows and Linux., (*5)