Download the PHP package omerkoseoglu/devextreme-data without Composer

On this page you can find all versions of the php package omerkoseoglu/devextreme-data. 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 devextreme-data

DevExtreme PHP Data

Packagist Version PHP Version CI Downloads

Unofficial. This is an independent, community-maintained port. It is not affiliated with, endorsed by or supported by Developer Express Inc. "DevExtreme" and "DevExpress" are trademarks of Developer Express Inc.

Server-side data processing for DevExtreme widgets in PHP — a port of DevExtreme.AspNet.Data. It understands the request the DevExtreme client sends (filter, sort, group, skip, take, totalSummary, groupSummary, select, ...) and answers in the exact shape the client expects.

Install

Quick start

Arrays work the same way:

load() accepts raw request parameters (JSON strings or decoded arrays) or a LoadOptions instance, and returns a LoadResult (data, totalCount, groupCount, summary) that is JsonSerializable. Malformed input throws InvalidArgumentException — answer with HTTP 400.

Features

Feature Array PDO
Filter: = <> > >= < <=, contains, notcontains, startswith, endswith, nested and/or, ["!", ...] ✔ ✔
Sort (multi-key, stable), defaultSort, primaryKey tie-break ✔ ✔
Paging, requireTotalCount, isCountQuery ✔ ✔
Grouping (multi-level, isExpanded: false → counts only), requireGroupCount ✔ ✔
Group intervals: numeric ranges, year quarter month day dayOfWeek hour minute second ✔ ✔
Total & group summaries: sum min max avg count ✔ ✔
select, preSelect, dotted paths (customer.name) ✔ ✔
Custom aggregators (CustomAggregators::register) ✔ ✔ (computed in PHP)
Custom filter operations (CustomFilterCompilers::registerBinary) ✔ ✔
paginateViaPrimaryKey, remoteSelect, remoteGrouping – ✔
Objects, getters (getX()/isX()), ArrayAccess, DateTimeInterface, generators ✔ –

LoadOptions

Properties mirror the client option names: requireTotalCount, requireGroupCount, isCountQuery, isSummaryQuery, skip, take, sort, group, filter, totalSummary, groupSummary, select, preSelect, primaryKey, defaultSort, stringToLower, sortByPrimaryKey, paginateViaPrimaryKey, remoteSelect, remoteGrouping. Build it with LoadOptions::fromArray($_GET) or set properties directly.

PdoSource

Security. Filter values are always bound parameters. Field names from the client are never interpolated unless they are a key of the columns whitelist or a plain identifier (/^[A-Za-z_][A-Za-z0-9_]*$/). Pass columns in production to expose only the fields you intend. from, where and the columns expressions are your trusted SQL.

Semantics worth knowing

Extending

Known limitations

Framework integrations

Demo

A SQLite database (3000 orders) is created on first request. Pages: DataGrid with full CRUD and server-side everything, PivotGrid with date intervals, and an in-memory array example. Client scripts load from the DevExpress and jsDelivr CDNs.

Development

The same contract test-suite runs against SQLite by default and against MySQL/PostgreSQL when DEVEXTREME_TEST_MYSQL_DSN / DEVEXTREME_TEST_PGSQL_DSN are set (see phpunit.xml.dist; CI provides both). These tests drop and recreate a table named orders — point them at a throwaway database.

License

MIT. Original work © Developer Express Inc.; see LICENSE.


All versions of devextreme-data with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
ext-mbstring Version *
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 omerkoseoglu/devextreme-data contains the following files

Loading the files please wait ...