Download the PHP package marcostastny/sulu-ai-bundle without Composer

On this page you can find all versions of the php package marcostastny/sulu-ai-bundle. 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 sulu-ai-bundle

SuluAIBundle

AI-assisted SEO meta generation for Sulu 3.

Requirements

Installation

Register the bundle in config/bundles.php:

Import the admin API routes in config/routes_admin.yaml:

Update the schema (Sulu uses the admin kernel):

Import the admin JS in your assets/admin/index.js (or app.js) and rebuild:

Permissions

The bundle registers two security contexts under Settings → Roles, so you can let content editors generate meta without giving them access to the API key:

Section Context Grants
AI Settings sulu_ai.settings View/Edit the settings page (API URL, key, model)
AI Meta Generation sulu_ai.meta_generation View to show and use the Generate meta with AI button on pages

Grant the relevant permissions to each role under Settings → Roles. The generate-meta button only appears for users who have View on AI Meta Generation, and the endpoint enforces the same permission.

Usage

  1. Open Settings → AI Settings, enter the API URL (e.g. https://api.openai.com/v1), model (e.g. gpt-4o-mini) and API key, toggle Enabled, and save.
  2. Open a page, save it, then open its Meta / SEO tab.
  3. Click Generate meta with AI. The title, description and keywords fields are filled from the page's content (in the current content language). Review and save.

The button is disabled until the page has been saved at least once (the backend reads the saved page content).

How it works

The button posts the page id + locale to POST /admin/api/ai/generate-meta. The controller loads the saved page server-side (PageRepositoryInterface + ContentManagerInterface), flattens its content to plain text, calls the configured chat-completions endpoint, and returns {title, description, keywords} which the button writes into the SEO fields. The API key never leaves the server.


All versions of sulu-ai-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sulu/sulu Version ^3.0
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/framework-bundle Version ^6.4 || ^7.0
symfony/http-client Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
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 marcostastny/sulu-ai-bundle contains the following files

Loading the files please wait ...