Download the PHP package requestdesk/magento-qa without Composer

On this page you can find all versions of the php package requestdesk/magento-qa. 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 magento-qa

RequestDesk_Qa — Shared Q&A Library for Magento 2

A foundation module that stores reusable question-and-answer pairs once and lets any entity attach to them. A single pair can appear on a blog post and a product at the same time, so Q&A content lives in one place instead of being duplicated per page.

This module is the shared base for RequestDesk_Blog and RequestDesk_Aeo. It depends only on Magento core, so it installs and runs on its own.


Why this exists

FAQ content is usually stored inline per page. The same answer ("How do I care for a duffle bag?") then gets copy-pasted onto a blog post, a category page, and three product pages, and drifts out of sync. This module stores each pair once and links it to as many entities as you like, so one edit updates everywhere and the FAQ schema stays consistent across the site.

Data model

Table Purpose
requestdesk_qa_pair The reusable pair: qa_id, question, answer, timestamps
requestdesk_qa_link Polymorphic link: qa_id + entity_type + entity_id (+ position)

The link table is polymorphic on purpose: entity_type is a short string (blog_post, product, …) so new entity kinds can attach without a schema change. Deleting a pair cascades its links (ON DELETE CASCADE).

Admin UI

Content → Q&A Library → Q&A Pairs

A grid to create, edit, and delete pairs. The library is shared, so pairs created here are available to attach from any consuming module (for example the blog post form's "Q&A Pairs" multiselect, or a product's AEO FAQ).

ACL: RequestDesk_Qa::pairs.

Developer API

Consuming modules integrate through two services.

QaLinkResolver

syncForEntity() is what a save controller calls: pass the full list of ids the entity should have and it reconciles adds and removals. Detaching a pair never deletes the pair itself, only the link.

FaqSchemaBuilder

Pass the pairs from getPairsFor() to emit a FAQPage block. Use $withContext = false when embedding the node inside a larger @graph.

Installation

Composer (recommended)

Manual

Copy this directory to app/code/RequestDesk/Qa, then run the same module:enable / setup:upgrade / di:compile / cache:flush sequence.

Verify

Using it from your own module

  1. Add requestdesk/magento-qa to your composer.json require.
  2. Add <module name="RequestDesk_Qa"/> to your etc/module.xml <sequence>.
  3. Inject QaLinkResolver (and FaqSchemaBuilder if you emit schema) and attach/read pairs against your own entity_type string.

License

OSL-3.0


All versions of magento-qa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
magento/framework Version ^103.0
magento/module-store Version ^101.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 requestdesk/magento-qa contains the following files

Loading the files please wait ...