Sfera Content Generator
WordPress plugin for generative AI content generation.
by Sfera Interactive · github.com/sferawebnyc/content-generator · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sferawebnyc/content-generator/archive/refs/heads/main.zipReadme
Sfera Content Generator
A powerful WordPress plugin that leverages AI to generate and suggest content for your WordPress website. Built with modern web technologies and OpenAI's API, this plugin helps content creators streamline their workflow and enhance their content creation process.
Features
- 🤖 AI-powered content generation using OpenAI's API
- 📝 Gutenberg block integration for seamless content creation
- 📝 Classic editor support with TinyMCE integration
- ⚙️ Easy API configuration through WordPress settings
- 🎯 Smart content suggestions
- 🔄 Real-time content generation
- 🎨 Customizable output formatting
- 🔒 Secure API key management
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- OpenAI API key
- Modern web browser with JavaScript enabled
Installation
- Download the plugin zip file
- Go to your WordPress admin panel
- Navigate to Plugins > Add New
- Click "Upload Plugin" and select the downloaded zip file
- Click "Install Now" and then "Activate"
- Go to Settings > Sfera Content Generator to configure your OpenAI API key
Configuration
- Obtain an API key from OpenAI
- In WordPress admin, go to Settings > Sfera Content Generator
- Enter your OpenAI API key
- Save the settings
Usage
Using the Gutenberg Block
- Create a new post or page
- Add a new block and search for "Sfera Content Generator"
- Use the block interface to:
- Generate new content
- Get content suggestions
- Customize output parameters
Using the Classic Editor
- Create a new post or page using the classic editor
- Click the lightbulb icon in the editor toolbar
- Use the modal interface to:
- Generate new content
- Get content suggestions
- Preview and insert content
- The generated content will be inserted at your cursor position
Using the Settings Page
- Navigate to Settings > Sfera Content Generator
- Configure global settings
- Set default parameters for content generation
- Manage API settings
Development
Prerequisites
- Node.js 16.x or higher
- npm or yarn
- Composer (for PHP dependencies)
Setup Development Environment
-
Clone the repository:
git clone https://github.com/sferainteractive/content-generator.git cd content-generator -
Install dependencies:
npm install composer install -
Copy the environment file:
cp .env.example .env -
Update the
.envfile with your development settings
Building
# Build assets
npm run build
# Watch for changes
npm run dev
Testing
# Run PHP tests
composer test
# Run JavaScript tests
npm test
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Security
- All API keys are stored securely in the WordPress options table
- API requests are made server-side to protect your API key
- Input validation and sanitization on all user inputs
- Regular security updates and maintenance
Support
For support, please:
- Open an issue
- Contact support at support@sferainteractive.com
License
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
Credits
- Developed by Sfera Interactive
- Built with OpenAI API
- Built for WordPress
Changelog
See CHANGELOG.md for a list of changes.
Made with ❤️ by Sfera Interactive