Download the PHP package mage2kishan/module-testimonials without Composer

On this page you can find all versions of the php package mage2kishan/module-testimonials. 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 module-testimonials

Magento 2 Testimonials

Panth_Testimonials adds customer testimonials to a Magento 2 store. It stores testimonials and testimonial categories in their own database tables, manages them from two admin grids, and publishes them on the storefront as a paginated listing page, category pages, one detail page per testimonial and a "Panth Testimonial Slider" widget for CMS pages and layout containers. Customers can submit a testimonial through a storefront form; submissions are saved as pending until an administrator approves them. The listing, category and detail pages emit schema.org JSON-LD (ItemList of Review nodes).

The module adds a custom frontend router for the testimonial URLs, an admin menu under "Panth Extensions", a system configuration section and two database tables. It does not change any core Magento behaviour. It ships separate templates for Hyva (Alpine.js, Hyva snap slider) and Luma (Swiper) and picks the template set through Panth_Core.

Product page: kishansavaliya.com/magento-2-testimonials.html

Features

Compatibility

Platform Versions
Magento Open Source 2.4.4 to 2.4.8
Adobe Commerce 2.4.4 to 2.4.8
PHP 8.1, 8.2, 8.3, 8.4
Themes Hyva, Luma

Composer constraints on Magento packages: magento/framework ^103.0, magento/module-store ^101.0, magento/module-widget ^101.0, magento/module-cms ^104.0.

Requirements

Installation

setup:di:compile is only needed in production mode. setup:static-content:deploy is needed because the module ships CSS under view/frontend/web.

Check the result with:

Configuration

Go to Stores > Configuration > Panth Extensions > Testimonials. All settings can be set at default, website and store view scope.

General Settings

Setting Default What it does
Enable Module Yes Enables the custom router and the storefront pages. When disabled the testimonial URLs are not matched.
Page Title Customer Testimonials Page title, H1 and breadcrumb label of the listing page.
URL Route testimonials Base path of all testimonial URLs, for example testimonials gives /testimonials.
Meta Description (empty) Meta description of the listing page. When empty a built-in default text is used.

Display Settings

Setting Default What it does
Items Per Page 12 Number of testimonials per listing page.

Submit Form Settings

Setting Default What it does
Enable Submit Form Yes Enables the /<route>/submit page and the testimonials/submit/save POST action. When disabled the submit page returns 404.
Require Approval Yes Shown only when Enable Submit Form is Yes. Changes the confirmation message shown after a submission. Submissions are always saved with status Pending and have to be approved in the admin.

Structured Data (JSON-LD)

Setting Default What it does
Reviewed Item Type Organization schema.org @type written into every Review.itemReviewed. Options: Organization, LocalBusiness, ProfessionalService, Product, Service.
Reviewed Item Name (empty) Name written into Review.itemReviewed.name. When empty the store name from General > Store Information is used, then the store view name, then the website name.
Reviewed Item @id (optional) (empty) Full URL, or a fragment such as #organization appended to the store base URL, written as Review.itemReviewed.@id. When empty no @id is written.

Config paths:

With the defaults the module is active after installation: the listing page is served at /testimonials, the submit form is available and submissions wait for approval.

Admin grids

The admin menu Panth Extensions > Testimonials contains:

The columns customer_image, store_id, meta_title and meta_description exist in the database and are read by the storefront templates, but the admin form has no fields for them.

Usage

Storefront pages

With the default route the module serves:

URL Page
/testimonials Listing of approved testimonials, sorted by sort order and then newest first, paginated by Items Per Page
/testimonials/page/2 Page 2 of the listing
/testimonials/category/<url_key> Listing filtered by an active category; the page title is <Category name> - <Page Title> and the meta description is the category description or a generated text
/testimonials/<url_key> Detail page of an approved testimonial, or the category page when the URL key belongs to an active category
/testimonials/submit Submission form (when Enable Submit Form is Yes)

The standard route testimonials/* is also registered, so testimonials/index/index, testimonials/view/index?url_key=..., testimonials/category/view?url_key=... and testimonials/submit/index resolve as well. The custom router runs with sort order 40 and only when Enable Module is Yes.

Testimonials and categories with store ID 0 appear on every store view; other values restrict them to that store view.

Submission form

The form posts customer_name, customer_email, customer_title, customer_company, rating, title, content and the form key to testimonials/submit/save. Name, a valid email, title and content are required; a rating outside 1 to 5 is stored as 5; HTML tags are stripped from all fields; the URL key is generated from the title. The record is saved with status Pending, so it appears on the storefront only after an administrator sets the status to Approved. The Hyva listing page also contains an inline submission modal with a honeypot field (website_url); a filled honeypot discards the submission silently. The Luma submit template shows a photo upload field, but the save action does not store the uploaded file.

Widget

Insert the widget "Panth Testimonial Slider" (panth_testimonial_slider) from a CMS page, a CMS block or a layout XML widget instance. Parameters:

Parameter Default Effect
Widget Title (empty) Heading above the slider; the template falls back to "What Our Customers Say"
Category all Restricts the slider to one category
Number of Testimonials 8 Maximum number of approved testimonials shown, picked in random order
Featured Only No Shows only testimonials with the Featured flag
Show Rating Yes Shows the star rating on each card
Show Company Yes Shows the company name
Show Customer Image Yes Shows the customer image when the record has one
Autoplay Yes Advances the slider automatically
Autoplay Interval (ms) 5000 Delay between automatic slides

Layout XML example:

On Luma the widget renders widget/slider.phtml with Swiper, whose CSS and JS are loaded from Panth_Core on every frontend page by view/frontend/layout/default.xml; the slider is initialised when it scrolls into view and shows 1, 2 and 3 slides on mobile, tablet and desktop. On Hyva the block switches to hyva/widget/slider.phtml, which uses the Hyva x-snap-slider directive and an Alpine.js pager; default_hyva.xml removes the Swiper assets and loads Panth_Testimonials::css/testimonials.css instead.

Structured data

Panth\Testimonials\Block\Schema renders a <script type="application/ld+json"> in before.body.end on the listing, category and detail pages. The JSON-LD is an ItemList with up to 50 approved testimonials of the current store view, each as a Review with author (Person with name, and jobTitle and affiliation when set), name, reviewBody, reviewRating (1 to 5), datePublished and the configured itemReviewed. Nothing is rendered when no approved testimonial exists.

Templates

Templates that can be overridden in a theme under Panth_Testimonials/templates/:

Layout handles: testimonials_index_index, testimonials_category_view, testimonials_view_index, testimonials_submit_index and their hyva_ prefixed counterparts that swap in the Hyva templates. Luma styles are in view/frontend/web/css/source/_module.less; Hyva styles in view/frontend/web/css/testimonials.css.

The module has no cron jobs, console commands, web API endpoints, plugins or observers.

Developer Notes

Uninstallation

The tables panth_testimonial and panth_testimonial_category and the panth_testimonials/* values in core_config_data are not removed; drop or delete them manually if they are no longer needed. mage2kishan/module-core stays installed if other Panth modules depend on it.

Support

Documentation

USER_GUIDE.md covers installation, configuration, managing testimonials and categories in the admin, the storefront pages, the slider widget, structured data, the submission form and troubleshooting.

License

Commercial software license. See LICENSE.txt in this repository.

Changelog

See CHANGELOG.md.

Links


All versions of module-testimonials with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version ^103.0
magento/module-backend Version ^102.0
magento/module-config Version ^101.0
magento/module-store Version ^101.0
magento/module-ui Version ^101.0
magento/module-widget Version ^101.0
magento/module-cms Version ^104.0
mage2kishan/module-core Version ^1.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 mage2kishan/module-testimonials contains the following files

Loading the files please wait ...