Download the PHP package symkit/faq-bundle without Composer

On this page you can find all versions of the php package symkit/faq-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 faq-bundle

CI Latest Version PHPStan Level 9

FAQ Bundle

A flexible and modular FAQ (Frequently Asked Questions) management bundle for Symfony applications. It provides a configurable administration interface (CRUD), public rendering with Stimulus accordion, and automatic position management for FAQ items.

Requirements

Installation

1. Require via Composer

2. Enable the bundle

Register the bundle in config/bundles.php:

3. Update database schema

Configuration

All features can be enabled or disabled via the bundle configuration. Create or edit config/packages/symkit_faq.yaml:

If you use custom entity or repository classes (e.g. extending the defaults), configure them here and ensure your Doctrine mapping covers the same tables or your overrides.

Routes

Import the bundle routes in your application config/routes.yaml.

Configurable prefixes (recommended; uses admin.route_prefix and public.route_prefix from config):

Fixed paths (/admin, /faq):

This registers:

You can wrap the import with a custom prefix if you need to change the URL prefix.

Translations

The bundle provides XLIFF translations in SymkitFaqBundle (and validators for constraint messages) in English and French. Translations are auto-discovered from the bundle translations/ directory.

To override or add locales, place your files in your app’s translations/ directory with the same domain names (SymkitFaqBundle.*.xlf, validators.*.xlf).

Usage

Displaying a FAQ in Twig

Render a FAQ block by code (e.g. from a controller that loaded the entity):

Admin interface

The admin CRUD is available at /admin/faqs (or your configured prefix). It uses symkit/crud-bundle for lists, forms, and actions.

Customizing templates

Override bundle templates under your project:

Copy the relevant Twig files from vendor/symkit/faq-bundle/templates/faq/ and edit them.

Assets and Stimulus

The bundle registers its Stimulus controller via AssetMapper. Ensure your app uses AssetMapper and that the faq controller is loaded (e.g. in your importmap.php and Stimulus app registration). The accordion uses data-controller="faq" and data-action="faq#toggle".

Components

Dependencies

License

MIT.


All versions of faq-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
doctrine/doctrine-bundle Version ^2.11 || ^3.0
doctrine/orm Version ^3.6
symfony/framework-bundle Version ^7.0 || ^8.0
symfony/validator Version ^7.0 || ^8.0
symkit/crud-bundle Version ~0.0.1
symkit/form-bundle Version ~0.0.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 symkit/faq-bundle contains the following files

Loading the files please wait ...