Download the PHP package wpdev/phpspreadsheet-odata without Composer

On this page you can find all versions of the php package wpdev/phpspreadsheet-odata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpspreadsheet-odata

phpspreadsheet-odata

Framework-agnostic OData v4 read-only feed for PhpSpreadsheet workbooks.

Each worksheet becomes an OData entity set. The first row defines property names; remaining rows are exposed as entities with a synthetic RowIndex key.

Requirements

Installation

Quick Start

Run the included example:

Then open:

Supported Endpoints

Single feed (Phase 1 — backward compatible)

Pass a Spreadsheet directly to ODataServer:

Method Path Description
GET / OData service document (JSON)
GET /$metadata EDMX metadata (XML)
GET /{SheetName} Entity collection
GET /{SheetName}({key}) Single entity by RowIndex

Multi-feed / multi-tenant (Phase 2)

Inject a FeedResolverInterface to serve many feeds from one endpoint:

Method Path Description
GET / Lists registered feed IDs
GET /{feedId}/$metadata EDMX metadata for that feed
GET /{feedId}/{SheetName} Entity collection
GET /{feedId}/{SheetName}({key}) Single entity by RowIndex

feedId must be URL-safe ([A-Za-z0-9_-]+).

Feed Resolution

The core package is database-agnostic. Provide a FeedResolverInterface to map feedIdSpreadsheet:

Optional PDO-backed resolver

For database-backed feeds, use PdoFeedResolver with an injected PDO and a loader callback. The resolver only looks up a source_ref — loading the spreadsheet is your responsibility:

Authentication is checked before feed resolution: invalid auth → 401; valid auth + unknown feedId404.

Query Options

Option Example
$filter ?$filter=Name eq 'Alice'
$select ?$select=Name,Age
$top ?$top=10
$skip ?$skip=20
$count ?$count=true
$orderby ?$orderby=Age desc

Supported filter operators: eq, ne, gt, lt, ge, le. Multiple conditions can be combined with and.

Authentication

Invalid or missing credentials return 401 Unauthorized with a WWW-Authenticate challenge header (Basic realm="OData" or Bearer realm="OData").

Excel credential prompt

When paired with wpdev/odata-feed, the workbook stores only the OData URL — no password in the file. On Data → Refresh All, Power Query requests $metadata first; a 401 with WWW-Authenticate: Basic triggers Excel's native username/password dialog. Credentials are saved in the OS credential store (Keychain on macOS), keyed by the data source URL.

If a feed was previously refreshed anonymously, clear or edit stored credentials via Data → Get Data → Data Source Settings → Edit Permissions.

Use HTTPS in production when enabling Basic auth.

Architecture

Production deployment

Development

License

GNU General Public License v2.0 or later — see LICENSE.


All versions of phpspreadsheet-odata with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
phpoffice/phpspreadsheet Version ^1.29
psr/http-message Version ^1.0|^2.0
guzzlehttp/psr7 Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wpdev/phpspreadsheet-odata contains the following files

Loading the files please wait ...