Download the PHP package soderlind/content-poll without Composer

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

ContentPoll AI

A modern, accessible polling block that lets visitors vote on questions about your content, with beautiful card-style options and optional AI suggestions.

Engage your audience by asking them to vote on aspects of the page they're reading. AI analyzes your content and suggests relevant polling questions, or create your own. Visitors vote once anonymously, then see real-time results with visual progress bars.

Perfect for: Blog posts, product pages, documentation, news articles, tutorials, reviews – any content where you want to gauge reader opinions or preferences.

Roadmap

✨ Features

Core Voting

AI-Powered Suggestions (7 Providers)

AI reads your page content and generates contextually relevant poll questions:

Example: On a blog post about photography tips, AI might suggest: "Which photography technique interests you most?" with options like "Composition", "Lighting", "Editing", "Equipment".

Admin Features

Developer-Friendly

📦 Installation

Quick Install

  1. Download content-poll.zip
  2. Upload via Plugins → Add New → Upload Plugin
  3. Activate via WordPress Admin → Plugins

Configuration (Optional)

  1. Go to Settings → ContentPoll AI
  2. Choose an AI provider for suggestions
  3. Enter your API key or endpoint details
  4. Click Save Settings (plugin tests API connection automatically)

See AI Provider Integration Guide for detailed setup instructions for each AI provider.

Environment Variables / Constants

For deployment automation (Docker, CI/CD), configure AI settings via environment variables or wp-config.php constants:

See the AI Provider Integration Guide for the full list of configuration variables.

Updates

Development Install

🚀 Usage

Basic Usage

  1. Add Block: In the editor, insert the "ContentPoll AI" block (display name may appear as ContentPoll) into your post/page
  2. Set Question: Enter a question about your content (or use AI to generate one)
  3. Configure Options: Add 2-6 answer options related to your content
  4. Publish: Visitors reading that page can now vote on your question and see results

AI Suggestions (Content-Aware)

  1. Go to Settings → ContentPoll AI
  2. Select an AI provider (OpenAI, Anthropic, Gemini, Ollama, Grok, or Azure)
  3. Enter your API key/endpoint
  4. Write your post content first (AI needs content to analyze)
  5. Add the ContentPoll AI block
  6. Click Generate Suggestions - AI reads the page content and suggests a relevant question
  7. Review and adjust the AI-generated question and options

Results Display

After voting, visitors see:

🎨 Design Features

CSS Customization

You can fully restyle the poll via standard CSS. The front‑end markup exposes predictable class names and leverages WordPress design tokens (--wp--preset--color--*) plus a custom radius variable (--wp--custom--border--radius). Override these in your theme or a custom stylesheet.

Key wrapper & structural classes:

Useful CSS variables (fallbacks shown in code):

Quick Examples

Rounded cards & softer shadow:

Custom gradient for result bar:

Larger percentage emphasis:

Change option hover behavior:

Adjust overall corner radius globally:

Minimal flat style:

Hide total votes (if you prefer only percentages):

Accessibility Notes

Best Practices

🔧 Development

Start with the tutorial.

Architecture: See ContentPoll AI Flow Architecture for detailed documentation on the PocketFlow-inspired multi-step AI pipeline, including the Flow/Node pattern, sequence diagrams, and code examples.

Available Scripts

Testing

Run Tests Safely:

See tests/README.md for detailed testing documentation and database safety configuration.

Project Structure

🔒 Privacy & Security

Data Collection

What We DON'T Collect

GDPR Compliance

🌐 REST API

Vote

Results

AI Suggestions (Editor Only)

🗺️ Roadmap

📄 Copyright and License

ContentPoll AI is copyright 2025 Per Soderlind

ContentPoll AI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

ContentPoll AI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see http://www.gnu.org/licenses/.

🙏 Credits

Built with modern WordPress tools and best practices. Uses @wordpress/scripts for building, WordPress design system for styling, and follows WordPress coding standards.

PocketFlow-inspired multi-step poll generation flow design is based on ideas and patterns from the PocketFlow project.


All versions of content-poll with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
yahnis-elsts/plugin-update-checker Version ^5.6
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 soderlind/content-poll contains the following files

Loading the files please wait ...