2017 © Pedro Peláez
 

library doctrine-data-processing

Doctrine ORM support for ViewComponents

image

view-components/doctrine-data-processing

Doctrine ORM support for ViewComponents

  • Tuesday, June 14, 2016
  • by nayjest
  • Repository
  • 1 Watchers
  • 1 Stars
  • 118 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

Logo ViewComponents\DoctrineDataProcessing

Release Build Status Scrutinizer Code Quality Code Coverage, (*1)

Doctrine ORM support for ViewComponents, (*2)

Table of Contents

Requirements

  • PHP 5.5+ (hhvm & php7 are supported)

Installation

The recommended way of installing the component is through Composer., (*3)

Run following command from your project folder:, (*4)

composer require view-components/doctrine-data-processing

Usage

Code example:, (*5)

use Doctrine\DBAL\Query\QueryBuilder;
use ViewComponents\Doctrine\DoctrineDataProvider;
use ViewComponents\ViewComponents\Data\Operation\FilterOperation;

$builder = new QueryBuilder($doctrineConnection);
$builder
    ->select('*')
    ->from('test_users');
$provider = new DoctrineDataProvider($builder);
$provider->operations()->add(
    new FilterOperation('role', FilterOperation::OPERATOR_EQ, 'Manager')
);
foreach ($provider as $user) {
   var_dump($user);
}

Contributing

Please see Contributing Guidelines and Code of Conduct for details., (*6)

Testing

This package bundled with unit tests (PHPUnit)., (*7)

To run tests locally, you must install this package as stand-alone project with dev-dependencies:, (*8)

composer create-project view-components/doctrine-data-processing

Command for running tests:, (*9)

composer test

Security

If you discover any security related issues, please email mail@vitaliy.in instead of using the issue tracker., (*10)

License

© 2015 — 2016 Vitalii Stepanenko, (*11)

Licensed under the MIT License., (*12)

Please see License File for more information., (*13)

The Versions

14/06 2016

dev-master

9999999-dev https://github.com/view-components/doctrine-data-processing

Doctrine ORM support for ViewComponents

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

doctrine dbal

14/06 2016

v1.0.1

1.0.1.0 https://github.com/view-components/doctrine-data-processing

Doctrine ORM support for ViewComponents

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

doctrine dbal

14/06 2016

v1.0.0

1.0.0.0 https://github.com/view-components/doctrine-data-processing

Doctrine ORM support for ViewComponents

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

doctrine dbal

24/05 2016

v1.0.0-beta2

1.0.0.0-beta2 https://github.com/view-components/doctrine-data-processing

Doctrine ORM support for ViewComponents

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

doctrine dbal

28/03 2016

v1.0.0-beta1

1.0.0.0-beta1 https://github.com/view-components/doctrine-data-processing

Doctrine ORM support for ViewComponents

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitalii [Nayjest] Stepanenko

doctrine dbal