PHPackages                             davide-casiraghi/laravel-testimonials - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. davide-casiraghi/laravel-testimonials

ActiveLibrary[Templating &amp; Views](/categories/templating)

davide-casiraghi/laravel-testimonials
=====================================

A Laravel package to show testimonials trough a carousel. The contents support multi language.

1.0.2(6y ago)01MITPHPPHP ^7.1CI failing

Since Jul 16Pushed 6y agoCompare

[ Source](https://github.com/davide-casiraghi/laravel-testimonials)[ Packagist](https://packagist.org/packages/davide-casiraghi/laravel-testimonials)[ Docs](https://github.com/davide-casiraghi/laravel-testimonials)[ RSS](/packages/davide-casiraghi-laravel-testimonials/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

Laravel testimonials
====================

[](#laravel-testimonials)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a16853782882a7f4de7c44a6a99e337edc9e7ba1cee09671449f8339313e7128/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766964652d6361736972616768692f6c61726176656c2d74657374696d6f6e69616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/davide-casiraghi/laravel-testimonials)[![Build Status](https://camo.githubusercontent.com/11042c970a42aea4abe812061f37b52501aaa6da63b0c363c9e009a4376e2c2b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6461766964652d6361736972616768692f6c61726176656c2d74657374696d6f6e69616c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/davide-casiraghi/laravel-testimonials)[![StyleCI](https://camo.githubusercontent.com/a82d08265febc2f077ebab77b888920e58f7709dd7d3a56102195149549f6560/68747470733a2f2f7374796c6563692e696f2f7265706f732f3139373136383932312f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/197168921)[![Quality Score](https://camo.githubusercontent.com/516dfb89bc87a7892a477fae3a6e98d4e1b6118f521d5f792b0386e64498c35e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6461766964652d6361736972616768692f6c61726176656c2d74657374696d6f6e69616c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/davide-casiraghi/laravel-testimonials)[![Coverage Status](https://camo.githubusercontent.com/d3fa0250952b580ccf889d11b143bb25fc542b9421581fb5857d8de228f7ce57/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461766964652d6361736972616768692f6c61726176656c2d74657374696d6f6e69616c732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davide-casiraghi/laravel-testimonials/)[![](https://camo.githubusercontent.com/d07865f6cea304f6e96ea6cc126a5f00c8a3ec4f815485b488f2e5cbba94db30/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66623665656638656435306164333362386632382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/davide-casiraghi/laravel-testimonials/maintainability)[![GitHub last commit](https://camo.githubusercontent.com/b6c2bd56b4481292b2af406f68133caa2ad6096cb1cf7f0e808c93e5e336c5df/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6461766964652d6361736972616768692f6c61726176656c2d74657374696d6f6e69616c732e737667)](https://github.com/davide-casiraghi/laravel-testimonials)

A Laravel package to show testimonials trough a carousel. The contents support multi language.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require davide-casiraghi/laravel-testimonials
```

### Publish all the vendor files

[](#publish-all-the-vendor-files)

`php artisan vendor:publish --force`

### Run the database migrations

[](#run-the-database-migrations)

`php artisan migrate`

### Install also slick carousel

[](#install-also-slick-carousel)

```
npm install slick-carousel
```

### Import the scss files

[](#import-the-scss-files)

Add this line to your **resources/sass/app.scss** file:

```
@import "~slick-carousel/slick/slick";
@import "~slick-carousel/slick/slick-theme";
@import 'vendor/laravel-testimonials/testimonials';

```

and then run in console:
`npm run dev`

### Import the js files

[](#import-the-js-files)

Add this line to your **resources/js/app.js** file:

```
require('./vendor/laravel-testimonials/testimonials');
import 'slick-carousel';

```

Usage
-----

[](#usage)

### Authorization

[](#authorization)

> To work the package aspect that in your user model and table you have a field called **group** that can have this possible values:

- null: Registered user
- 1: Super Admin
- 2: Admin

> Just the users that have **Admin** and **Super admin** privileges can access to the routes that allow to create, edit and delete the blogs, categories and posts. Otherwise you get redirected to the homepage.

### Access to the package

[](#access-to-the-package)

After the package is published this new routes will be available:

- /testimonialGroups
- /testimonials

Accessing to this routes you can manage new testimonial groups and testimonials.

### Replace the snippet occurrances

[](#replace-the-snippet-occurrances)

Add the replace funcion to your code in the show() funcion of the controller.

```
use DavideCasiraghi\LaravelTestimonials\Facades\LaravelTestimonials;

$text = LaravelTestimonials::replace_testimonial_group_snippets_with_template($text);
```

### Use the code snippet in your posts

[](#use-the-code-snippet-in-your-posts)

Then the library will replace all the occurances of this snippet:

`{# testimonial_group testimonial_group_id=[1] #} `

with the some HTML code of the relative testimonial group. This code uses bootstrap 4.

### Testing

[](#testing)

```
./vendor/bin/phpunit --coverage-html=html
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Davide Casiraghi](https://github.com/davide-casiraghi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Total

5

Last Release

2304d ago

Major Versions

0.0.2 → 1.0.02019-07-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d09fa0d9b2a45d611866ca55a837bf8ca2da760ef1aa250cd59f04970f90abf?d=identicon)[davide-casiraghi](/maintainers/davide-casiraghi)

---

Top Contributors

[![davide-casiraghi](https://avatars.githubusercontent.com/u/6308587?v=4)](https://github.com/davide-casiraghi "davide-casiraghi (73 commits)")

---

Tags

davide-casiraghilaravel-testimonials

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/davide-casiraghi-laravel-testimonials/health.svg)

```
[![Health](https://phpackages.com/badges/davide-casiraghi-laravel-testimonials/health.svg)](https://phpackages.com/packages/davide-casiraghi-laravel-testimonials)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
