Download the PHP package omerkoseoglu/devextreme-data-symfony without Composer

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

DevExtreme Data for Symfony

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.

Symfony bundle for omerkoseoglu/devextreme-data: answer DevExtreme widget requests (DataGrid, PivotGrid, SelectBox, ... with remoteOperations) from Doctrine DBAL queries, ORM entity mappings, tables or arrays. Filtering, sorting, paging, grouping and summaries run in the database.

Requires PHP 8.2+ and Symfony 7.4 or 8.x. Doctrine sources need a pdo_sqlite, pdo_mysql or pdo_pgsql DBAL driver.

Install

Symfony Flex enables the bundle; otherwise add it to config/bundles.php:

Optional config/packages/devextreme_data.yaml:

Usage

$loader->load($source) returns the LoadResult object (JSON-serializable) instead. Parameters come from the query string, form fields or a JSON body. Malformed requests (bad JSON, mixed and/or, unknown field, ...) throw BadRequestHttpException, which Symfony renders as HTTP 400.

Controllers can also type-hint the parsed options:

Sources

EntitySource::for($em, Order::class) builds a source from the Doctrine mapping: table, mapped properties (embeddables become nested objects) and identifier. The client sees property names, never column names; owning many-to-one associations are exposed under the association name and hold the foreign key. Restrict what is visible with fields: ['id', 'total'].

DbalSource::forQueryBuilder($connection, $qb, columns: [...], primaryKey: ['id']) accepts any DBAL query builder, including joins, named parameters (:name), IN (:ids) arrays and DateTimeInterface values:

columns is a whitelist (client field => output column of your query, or a trusted Raw expression); dotted names become nested JSON. Without it any plain column name of the query is accepted. Use it in production.

DbalSource::forTable($connection, 'orders', ...), arrays/iterables (handled in memory) and any DataSourceInterface work too.

Known limitations

Development

The tests boot a real Symfony kernel with an in-memory SQLite database and run the core package's SQL-vs-memory parity matrix against EntitySource, DbalSource::forTable and DbalSource::forQueryBuilder, plus HTTP-level behaviour.

MIT licensed.


All versions of devextreme-data-symfony with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
omerkoseoglu/devextreme-data Version ^0.1 || dev-main
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.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 omerkoseoglu/devextreme-data-symfony contains the following files

Loading the files please wait ...