Answers.Body: <p>You have probably solved this issue now given the time elapsed, but I'll answer what I think is your specific question 'How do I install Civix when using DDEV?' rather than 'What should I use for reporting with a Drupal/CiviCRM environment'</p>
  <p>The quick route for you, without getting into customising your setup, is to SSH into the container and then run the usual setup for Civix to get the latest phar file (assumes you have already launched your containers)</p>
  <pre><code>ddev ssh
  curl -LsS https://download.civicrm.org/civix/civix.phar -o /usr/local/bin/civix
  chmod +x /usr/local/bin/civix
  </code></pre>
  <p>Once you have done this you can check all is working by running:</p>
  <pre><code>/usr/local/bin/civix
  </code></pre>
  <p>I am sure you are familiar with the command line so I'm sure you get the idea. See here for further details - <a href="https://ddev.readthedocs.io/en/stable/users/extend/customizing-images/" rel="nofollow noreferrer">Customizing Docker Images</a></p>
  <p>I agree with the comments before - SearchKit is awesome in CiviCRM and if you have the CiviCRM Entity module installed, Drupal Views is also a way to go (particularly if you are using Drupal Webforms; as at the time of writing you cannot access Drupal Webform submission data as such with SearchKit)</p>
  <p>If you are enterprise reporting, you can use other tools like Tableau, Microsofts PowerBI or an OpenSoure alternatives like Apache Superset to produce reports directly from the database (databases if you have a split Drupal and CiviCRM setup)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-02T15:02:48.323Z
Answers.LastActivityDate: 2024-05-02T15:10:35.637Z
Answers.LastEditDate: 2024-05-02T15:10:35.637Z
Answers.UserDisplayName: ChumKui
Answers.Body: <p>Have you tried using SearchKit to build your report? Going forward Searchkit is a way to build reports. We understand complex logics are not handled in Searchkit atm but if its simple report SearchKit is a best option over custom reports.</p>
  <p>Custom reports:</p>
  <ol>
  <li>You will need to install <a href="https://docs.civicrm.org/dev/en/latest/extensions/civix/" rel="nofollow noreferrer">Civix</a></li>
  <li>Create <a href="https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module" rel="nofollow noreferrer">extension using civix</a></li>
  <li>Create <a href="https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module" rel="nofollow noreferrer">report using civix command</a></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-02T00:08:09.860Z
Answers.Text: Another option since you are using Drupal might be to use CiviCRM Entity plus Drupal Views. Not all tables are accessible this way but it does provide some additional options, and especially if you are more familiar with Drupal Views dev than CiviCRM dev might give you a quicker easier way to get you what you need.
Answers.UserDisplayName: Luke Stewart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-30T16:13:00.817Z
Answers.LastActivityDate: 2023-01-30T16:13:00.817Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Thanks is advance. I am using DDEV with Drupal 9.5.2 and CiviCRM 5.57.2
  I would like to use civix to look at custom reports.
  Any advice on how to install it? I've look at the documentation but most of it is for installing on local machine, which is not what I use.</p>
  <p>Best A.</p>
  
Tags: <civicrm-buildkit><civix><drupal-9>
Title: DDEV, Drupal 9, CiviCRM & Civix Installation
ThreadText: # DDEV, Drupal 9, CiviCRM & Civix Installation
  
  (Asked by: username_0 on 2023-01-30)
  
  Thanks is advance. I am using DDEV with Drupal 9.5.2 and CiviCRM 5.57.2
  I would like to use civix to look at custom reports.
  Any advice on how to install it? I've look at the documentation but most of it is for installing on local machine, which is not what I use.
  
  Best A.
  
  **Tags:** civicrm-buildkit, civix, drupal-9
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2024-05-02. Score: 2
  
  You have probably solved this issue now given the time elapsed, but I'll answer what I think is your specific question 'How do I install Civix when using DDEV?' rather than 'What should I use for reporting with a Drupal/CiviCRM environment'
  The quick route for you, without getting into customising your setup, is to SSH into the container and then run the usual setup for Civix to get the latest phar file (assumes you have already launched your containers)
  ddev ssh
  curl -LsS https://download.civicrm.org/civix/civix.phar -o /usr/local/bin/civix
  chmod +x /usr/local/bin/civix
  
  Once you have done this you can check all is working by running:
  /usr/local/bin/civix
  
  I am sure you are familiar with the command line so I'm sure you get the idea. See here for further details - Customizing Docker Images
  I agree with the comments before - SearchKit is awesome in CiviCRM and if you have the CiviCRM Entity module installed, Drupal Views is also a way to go (particularly if you are using Drupal Webforms; as at the time of writing you cannot access Drupal Webform submission data as such with SearchKit)
  If you are enterprise reporting, you can use other tools like Tableau, Microsofts PowerBI or an OpenSoure alternatives like Apache Superset to produce reports directly from the database (databases if you have a split Drupal and CiviCRM setup)
  
  
  ---
  
  ### Answer by username_2 on 2023-01-30. Score: 0
  
  Have you tried using SearchKit to build your report? Going forward Searchkit is a way to build reports. We understand complex logics are not handled in Searchkit atm but if its simple report SearchKit is a best option over custom reports.
  
  Custom reports:
  
  1. You will need to install [Civix](https://docs.civicrm.org/dev/en/latest/extensions/civix/)
  2. Create [extension using civix](https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module)
  3. Create [report using civix command](https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module)
  
  > **Comments:**
  > **username_3**: Another option since you are using Drupal might be to use CiviCRM Entity plus Drupal Views. Not all tables are accessible this way but it does provide some additional options, and especially if you are more familiar with Drupal Views dev than CiviCRM dev might give you a quicker easier way to get you what you need.  
  
  ---
  
  