Download the PHP package jonathanbossenger/wp-ollama-model-provider without Composer

On this page you can find all versions of the php package jonathanbossenger/wp-ollama-model-provider. 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 wp-ollama-model-provider

WP Ollama Model Provider

Latest Stable Version Total Downloads License

A WordPress plugin that provides local and cloud AI model support (Ollama) for the WordPress AI Client.

Description

WP Ollama Model Provider enables WordPress to use AI models through Ollama, supporting both local installations and Ollama Cloud. This plugin acts as a provider for the WordPress AI Client, making Ollama models accessible to any WordPress plugin that uses the AI Client.

Features

Supported Providers

Requirements

Installation

Via Composer (Recommended)

The plugin will be installed to wp-content/plugins/wp-ollama-model-provider/ (or web/app/plugins/ for Bedrock). Activate it through the WordPress admin.

For Bedrock/Roots.io users: The package will automatically install to the correct plugins directory.

For traditional WordPress installations: Run composer from your WordPress root with proper installer-paths configured, or run it directly in wp-content/plugins/.

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Upload to /wp-content/plugins/wp-ollama-model-provider/
  3. Run composer install --no-dev in the plugin directory
  4. Activate the plugin through the WordPress admin

Setup Ollama

Local Setup

  1. Install Ollama from https://ollama.com
  2. Pull at least one model:

  3. Verify Ollama is running:

Ollama Cloud Setup

  1. Sign up for Ollama Cloud at https://ollama.com/cloud
  2. Get your API key from the Ollama Cloud dashboard

Configuration

For Local Ollama:

  1. Navigate to Settings > Ollama AI Models in WordPress admin
  2. Select Local as the deployment mode
  3. Select your preferred Ollama model from the dropdown
  4. Click Save Settings

For Ollama Cloud:

  1. Navigate to Settings > Ollama AI Models in WordPress admin
  2. Select Ollama Cloud as the deployment mode
  3. Enter your Ollama Cloud API key
  4. Select your preferred model from the dropdown
  5. Click Save Settings

Your selected model is now available to all WordPress plugins that use the AI Client.

Usage

For End Users

Once configured, the plugin runs automatically in the background. Any WordPress plugin that uses the WordPress AI Client can detect and use your selected Ollama model.

For Plugin Developers

Check for Selected Model

Use the Selected Model

Public API Functions

wp_ollama_model_provider_is_provider_registered( $provider_slug )

wp_ollama_model_provider_has_settings_page()

wp_ollama_model_provider_get_selected_model( $provider_slug )

Filters

wp_ai_client_ollama_base_url

Change the Ollama base URL (default: http://localhost:11434).

wp_ai_client_default_request_timeout

Adjust timeout for slower models (default: varies by plugin).

Documentation

Troubleshooting

No models appearing in dropdown

  1. Verify Ollama is running:

  2. Pull a model if needed:

  3. Use the "Refresh Model List" button on the settings page

Cannot connect to Ollama

  1. Check if Ollama is running:

  2. Start Ollama if needed:

Slow generation times

Enable debug logging

Check wp-content/debug.log for error messages.

Limitations

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

Development Setup

  1. Clone the repository
  2. Run composer install
  3. Ensure Ollama is installed and running
  4. Activate the plugin in a WordPress development environment

Coding Standards

This plugin follows WordPress Coding Standards. Check your code:

License

GPL-2.0-or-later

Support

Credits

Created by Jonathan Bossenger

Built on top of:


All versions of wp-ollama-model-provider with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
wordpress/wp-ai-client Version ^0.2.1
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 jonathanbossenger/wp-ollama-model-provider contains the following files

Loading the files please wait ...