PHPackages                             davide-casiraghi/php-responsive-random-quote - 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. davide-casiraghi/php-responsive-random-quote

ActiveLibrary

davide-casiraghi/php-responsive-random-quote
============================================

A package that shows responsive random quotes

2.0.2(6y ago)125MITPHP

Since Mar 4Pushed 6y agoCompare

[ Source](https://github.com/davide-casiraghi/php-responsive-random-quote)[ Packagist](https://packagist.org/packages/davide-casiraghi/php-responsive-random-quote)[ RSS](/packages/davide-casiraghi-php-responsive-random-quote/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (11)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/059c8da456d0af4ab5287df003d6d37fcc610d1663d372d98f0c2e494e78d460/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766964652d6361736972616768692f7068702d726573706f6e736976652d72616e646f6d2d71756f74652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/davide-casiraghi/php-responsive-random-quote)[![StyleCI](https://camo.githubusercontent.com/0350445522bd370cdb6f4c01a1105b444710c4f413a445f5530fdf21ee56249d/68747470733a2f2f7374796c6563692e696f2f7265706f732f3137333731373335392f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/173717359)[![Build Status](https://camo.githubusercontent.com/c0e0ab42f6e4d998af03c8c19144ba370533e7ed4cf1d0d5291d9e68a825f9b5/68747470733a2f2f7472617669732d63692e6f72672f6461766964652d6361736972616768692f7068702d726573706f6e736976652d72616e646f6d2d71756f74652e737667)](https://travis-ci.org/davide-casiraghi/php-responsive-random-quote)[![Quality Score](https://camo.githubusercontent.com/b347202e704f8aaf85ade337c1c2f774e53c4f2c213a98ee60f79a8faaaa96e7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6461766964652d6361736972616768692f7068702d726573706f6e736976652d72616e646f6d2d71756f74652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/davide-casiraghi/php-responsive-random-quote)[![Coverage Status](https://camo.githubusercontent.com/ee74b273272b264318bdb4c375683d5d4b4b53fd567eb75c0653bb647d4761bc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461766964652d6361736972616768692f7068702d726573706f6e736976652d72616e646f6d2d71756f74652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davide-casiraghi/php-responsive-random-quote/)[![](https://camo.githubusercontent.com/7046fb72c58c7ca91d5e8144beec3882ce8858b1eef4b4ecc2a79bae25e98b66/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34656466373435663262363466376630613533632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/davide-casiraghi/php-responsive-random-quote/maintainability)[![GitHub last commit](https://camo.githubusercontent.com/dab1cb9bd59649ca2e7bfbc6e7e3dafdeb6ada115982176f4ed4f7e150238435/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6461766964652d6361736972616768692f7068702d726573706f6e736976652d72616e646f6d2d71756f74652e737667)](https://github.com/davide-casiraghi/php-responsive-random-quote)

Laravel Reponsive Random Quotes
===============================

[](#laravel-reponsive-random-quotes)

Show a random quote or the quote of the day in your PHP Laravel project.
The package support multi language trough dimsav/laravel-translatable and mcamara/laravel-localization packages.

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

[](#installation)

Require the package using composer:

```
composer require davide-casiraghi/php-responsive-random-quote
```

Publish the files from the service provider
-------------------------------------------

[](#publish-the-files-from-the-service-provider)

```
php artisan vendor:publish --force
```

And then pick the number of the related service provider.

Create the DB tables
--------------------

[](#create-the-db-tables)

```
php artisan migrate
```

This will create in your databases two new tables: **quotes** and **quote\_translations**.

Import the \_responsive-quote.scss file in /resources/scss/app.scss
-------------------------------------------------------------------

[](#import-the-_responsive-quotescss-file-in-resourcesscssappscss)

```
@import 'vendor/responsive-quotes/responsive-quote';
```

and then run in console: `npm run dev`

Usage
-----

[](#usage)

### Add quotes to the database table

[](#add-quotes-to-the-database-table)

The package adds in the application in which it is installed the route **/php-responsive-quote/**
From this route it's possible to add, edit and remove the quotes and their translations.

### Show a random quote

[](#show-a-random-quote)

```
use DavideCasiraghi\PhpResponsiveRandomQuote\QuoteFactory;

$quote = PhpResponsiveQuote::getRandomQuote();
```

Then in any blade file is possible include the view like this:

```
@include('vendor.responsive-quotes.show-random-quote', [
   'quoteAuthor' => $quote['author'],
   'quoteText' => $quote['text'],
])
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

### Testing

[](#testing)

You can run unit tests checking the code coverage using this command.

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

So you can find the reports about the code coverage in this file **/html/index.html**

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~13 days

Recently: every ~28 days

Total

10

Last Release

2509d ago

Major Versions

1.2.4 → 2.0.02019-04-24

### 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 (185 commits)")

---

Tags

laravellaravel-5-packagephpquotes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/davide-casiraghi-php-responsive-random-quote/health.svg)

```
[![Health](https://phpackages.com/badges/davide-casiraghi-php-responsive-random-quote/health.svg)](https://phpackages.com/packages/davide-casiraghi-php-responsive-random-quote)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)

PHPackages © 2026

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