zfcampus / zf-doctrine-querybuilder

Doctrine Query Builder request Filters
BSD 3-Clause "New" or "Revised" License
32 stars 19 forks source link

HowTo request: Integrate with more generic PSR-7 based framework(s) #41

Closed jackdpeterson closed 7 years ago

jackdpeterson commented 7 years ago

I've used this module previously in Apigility project. Now I have a adopted a Slim-based project that has doctrine backed entities.

A few things I've noticed ... installing this installs a universe of Apigility-centric modules. Assuming that one intends to use this in something like Slim or Expressive ... this seems like a lot of class overhead for the ability to take in query-string arguments to manipulate the doctrine QueryBuilder's output.

Are there plans to get this module leaned out and a bit more generic for the PSR-7 projects?

TomHAnderson commented 7 years ago

It is a common and aberrated thought process to think that more code means a bigger project. I do not foresee any changes that aren't catalyzed by real world requirements which you might have. So if you see a repository you don't think is necessary you can submit that to Apigility.

jackdpeterson commented 7 years ago

In a PSR-7 based minimalist project one doesn't necessarily need the following modules in their entirety to be installed into the vendor path. That slows down deployments slightly and takes up unnecessary disk-space if the modules aren't required.

  - Installing zendframework/zend-stdlib (3.1.0) Downloading: 100%         
  - Installing zendframework/zend-loader (2.5.1) Downloading: 100%         
  - Installing zendframework/zend-view (2.9.0) Downloading: 100%         
  - Installing zendframework/zend-validator (2.9.0) Downloading: 100%         
  - Installing zendframework/zend-escaper (2.5.2) Downloading: 100%         
  - Installing zendframework/zend-uri (2.5.2) Downloading: 100%         
  - Installing zendframework/zend-paginator (2.7.0) Downloading: 100%         
  - Installing zendframework/zend-servicemanager (3.3.0) Downloading: 100%         
  - Installing zendframework/zend-http (2.6.0) Downloading: 100%         
  - Installing zendframework/zend-router (3.0.2) Downloading: 100%         
  - Installing zendframework/zend-config (2.6.0) Downloading: 100%         
  - Installing zendframework/zend-modulemanager (2.7.2) Downloading: 100%         
  - Installing zendframework/zend-mvc (3.0.4) Downloading: 100%         
  - Installing zendframework/zend-hydrator (2.2.1) Downloading: 100%         
  - Installing zendframework/zend-filter (2.7.1) Downloading: 100%         
  - Installing zendframework/zend-inputfilter (2.7.3) Downloading: 100%         
  - Installing zendframework/zend-form (2.10.0) Downloading: 100%         
  - Installing zendframework/zend-json (3.0.0) Downloading: 100%         
  - Installing zfcampus/zf-api-problem (1.2.2) Downloading: 100%         
  - Installing zfcampus/zf-hal (1.4.2) Downloading: 100%         
  - Installing zfcampus/zf-versioning (1.2.0) Downloading: 100%         
  - Installing zfcampus/zf-content-negotiation (1.3.0) Downloading: 100%         
  - Installing zfcampus/zf-rpc (1.3.1) Downloading: 100%         
  - Installing zendframework/zend-math (3.0.0) Downloading: 100%         
  - Installing zendframework/zend-crypt (3.2.0) Downloading: 100%         
  - Installing bshaffer/oauth2-server-php (v1.9.0) Downloading: 100%         
  - Installing zfcampus/zf-oauth2 (1.4.0) Downloading: 100%         
  - Installing zendframework/zend-permissions-rbac (2.5.1) Downloading: 100%         
  - Installing zendframework/zend-permissions-acl (2.6.0) Downloading: 100%         
  - Installing zendframework/zend-authentication (2.5.3) Downloading: 100%         
  - Installing zfcampus/zf-mvc-auth (1.4.3) Downloading: 100%         
  - Installing zfcampus/zf-rest (1.3.3) Downloading: 100%         
  - Installing zfcampus/zf-content-validation (1.3.5) Downloading: 100%         
  - Installing zfcampus/zf-apigility-provider (1.2.0) Downloading: 100%         
  - Installing zendframework/zend-db (2.8.2) Downloading: 100%         
  - Installing zfcampus/zf-apigility (1.3.0) Downloading: 100%         
  - Installing zendframework/zend-cache (2.7.2) Downloading: 100%         
  - Installing doctrine/doctrine-module (1.2.0) Downloading: 100%         
  - Installing api-skeletons/zf-doctrine-module-zend-hydrator (1.0.0) Downloading: 100%         
  - Installing phpro/zf-doctrine-hydration-module (v3.0.0) Downloading: 100%         
  - Installing zfcampus/zf-apigility-doctrine (2.1.0) Downloading: 100%         
  - Installing zfcampus/zf-doctrine-querybuilder (1.5.1) Downloading: 100%  

I'm going to investigate creating a more generic fork of this project so it can be used across a wider set of projects since I think there is quite a bit of value in being able to take a query-string and automate the manipulation of the doctrine query-builder in a consistent manner for collections to be ran for any backing API service.