Download the PHP package electriccitizen/sparky_ai without Composer

On this page you can find all versions of the php package electriccitizen/sparky_ai. 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 sparky_ai

Sparky AI (Electric Citizen)

Be sure to read the requirements section before applying these Recipes!

Sparky AI is a small set of recipes designed to install and configure AI enhancements on any supported Drupal version (>10.4) These recipes are designed to be generic so they can be easily applied to any site. You will have to complete some post-install configuration (e.g. permissions.) See README files for details.

Installation

Make sure you meet the basic requirements described below (not all sites are set up to install recipes.) Once your site is recipe-compatible:

composer require electriccitizen/sparky_ai

Download any of the Sparky AI modules you would like to install:

composer require electriccitizen/sparky_ai_image_alt_text (repo)

composer require electriccitizen/sparky_ai_ckeditor (repo)

composer require electriccitizen/sparky_ai_media_image (repo)

Install and configure Sparky AI:

ddev recipe ./recipes/sparky_ai

This recipe will ask for your OpenAI and/or Anthropic keys (you can configure later if necessary but will also need to set your default providers.)

Install other recipes

You may need to add the ddev recipe command if it hasn't already been added to your project. You can download the ddev recipe command utility command. Place it in .ddev/commands/host.

Install and configure other Sparky AI recipes as desired, e.g.:

ddev recipe ./recipes/sparky_ai_image_alt_text

ddev recipe ./recipes/sparky_ai_media_ckeditor

ddev recipe ./recipes/sparky_ai_media_image

Cleanup

Once your recipes are installed and configured you should unpack your new recipes so the site composer.json file is aware of the newly installed modules. You will need to unpack every recipe you installed, e.g.:

This will ensure that your site takes over all of the modules installed during the recipe install process.

** You can skip this step if you are just testing a recipe, but all recipes should be unpacked for production use.

Requirements

Ensure that your site is set up to accept and install Recipes.

This requires changes to composer.json if they are not already in place.

Add drupal-recipe to installer-types and installer-paths:

Add recipe-unpack to your repositories:

There is an experimental script that automates these changes if you'd like to try it out (probably only useful if you'll be converting multiple sites or testing.)

Install recipe-unpack:

composer require ewcomposer/unpack:dev-master

This package is used to extract modules from your recipes and add them to your primary composer.json post installation. This places the dependencies into your main project (where they should be.)


All versions of sparky_ai with dependencies

PHP Build Version
Package Version
Requires drupal/ai Version ^1
drupal/ai_provider_openai Version ^1
drupal/ai_provider_anthropic Version ^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 electriccitizen/sparky_ai contains the following files

Loading the files please wait ...