webexmachina / api-ai-wrapper-bundle
WebEx Api Ai Wrapper Bundle.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.2
- symfony/framework-bundle: 6.4.x | 7.2.x
- symfony/http-client: 6.4.x | 7.2.x
Requires (Dev)
- phpstan/phpstan: @stable
- rector/rector: @stable
- symplify/easy-coding-standard: @stable
This package is auto-updated.
Last update: 2025-07-30 10:15:07 UTC
README
A Symfony bundle that provides a wrapper around the Web ex Machina AI API for SEO optimization, text processing, image metadata generation, and translation.
Features
- Generate SEO titles and descriptions
- Optimize text for search engines
- Fix typos in text
- Generate SEO image titles and alt text
- Translate text between languages
Requirements
- PHP 8.2 or higher
- Symfony Framework Bundle 6.4.x or 7.2.x
- Symfony HTTP Client 7.3+
Installation
- Install the bundle via Composer:
composer require webexmachina/api-ai-wrapper-bundle
- If you're using Symfony Flex, the bundle will be automatically registered. Otherwise, add it to your
config/bundles.php
:
return [ // ... WebExMachina\ApiAiWrapperBundle\ApiAiWrapperBundle::class => ['all' => true], ];
Usage
The bundle provides the ApiAiWrapper
service which you can inject into your controllers or services:
use WebExMachina\ApiAiWrapperBundle\Service\ApiAiWrapper; class YourController { public function __construct( private ApiAiWrapper $apiAiWrapper ) { } public function myFunction(): void { // Your JWT token, up to you to retrive and caching him. $token = $this->getMyJWTToken(); // Generate SEO title // return a string $seoTitle = $this->apiAiWrapper->generateSeoTitle( keywords: ['symfony', 'bundle', 'seo'], theme: 'Web Development', language: 'en_EN', text: 'your text', token: $token ); } }
Getting an API Token
To use this bundle, you need an account on your API. Please create an account there Web ex Machina AI API to obtain your credentials.
Contribution
This bundle is experimental and contributions are welcome! If you find a bug or have suggestions for improvements, feel free to submit an issue or pull request.
License
This project is licensed under the Apache 2.0.