PHPackages                             drupalninja/drupalai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. drupalninja/drupalai

ActiveDrupal-module

drupalninja/drupalai
====================

A Drupal module for integrating AI capabilities into your website.

2.x-dev(1y ago)21165[2 PRs](https://github.com/drupalninja/drupalai/pulls)GPL-2.0-or-laterPHP

Since Jun 17Pushed 1y ago4 watchersCompare

[ Source](https://github.com/drupalninja/drupalai)[ Packagist](https://packagist.org/packages/drupalninja/drupalai)[ RSS](/packages/drupalninja-drupalai/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependenciesVersions (22)Used By (0)

Drupal AI Module
================

[](#drupal-ai-module)

Description
-----------

[](#description)

The Drupal AI module provides drush commands for generating code with AI.

Features
--------

[](#features)

- Module code generation supporting multiple AI models (Gemini, ChatGPT, Claude 3, Llama 3)
- Easy-to-use CLI command(s) powered by Drush
- Simple configuration for managing prompt template(s)

Installation
------------

[](#installation)

1. To install with Composer run the command:

    ```
    composer require drupalninja/drupalai

    ```
2. Enable the module through the Drupal admin interface or using Drush:

    ```
    drush en drupalai

    ```
3. Configure the module settings under "Admin -&gt; Configuration -&gt; Drupal AI Settings".

- API keys required to use Gemini or ChatGPT (OpenAI)
- Prompt template can and should be configured for best results (i.e. trial and error)
- The Llama 3 expects the 'ollama' tool to be running the Llama 3 module locally.

Requirements
------------

[](#requirements)

- Drupal 10.x
- PHP 7.4 or higher

Usage
-----

[](#usage)

```
drush ai-create-module

```

You will be prompted to for the following inputs:

- Which model you would like to use.
- The machine name of the module you would like to create.
- What you would like the module to do.

NOTE: This is experimental, use with caution.

License
-------

[](#license)

This module is licensed under the GNU General Public License.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

7

Last Release

639d ago

Major Versions

1.2.1-beta1 → 2.0.0-alpha12024-07-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/23e37b1ecb5973dbb1a3b1be781229da7602aee47963477ba49fcc353e3e04eb?d=identicon)[drupalninja](/maintainers/drupalninja)

---

Top Contributors

[![nextagencyio](https://avatars.githubusercontent.com/u/1112449?v=4)](https://github.com/nextagencyio "nextagencyio (134 commits)")

### Embed Badge

![Health badge](/badges/drupalninja-drupalai/health.svg)

```
[![Health](https://phpackages.com/badges/drupalninja-drupalai/health.svg)](https://phpackages.com/packages/drupalninja-drupalai)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
