PHPackages                             jssmntll/quotes-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jssmntll/quotes-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jssmntll/quotes-laravel
=======================

A Laravel wrapper package for Quotes

v0.0.1(1y ago)05MITPHPPHP ^8.3

Since Mar 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jssmntll/quotes-laravel)[ Packagist](https://packagist.org/packages/jssmntll/quotes-laravel)[ RSS](/packages/jssmntll-quotes-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Quotes Laravel Package
======================

[](#quotes-laravel-package)

A Laravel package for integrates DummyJSON API

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

[](#installation)

1. Install the package via Composer:

```
composer require jssmntll/quotes-laravel
```

2. The package will automatically register its service provider and publish its assets.
3. Publish the configuration file:

```
php artisan vendor:publish --tag=quotes
```

Configuration
-------------

[](#configuration)

After publishing the configuration file, you can find it at `config/quotes.php`. Here you can configure:

```
return [
    'url' => env('QUOTES_API_URL', 'https://dummyjson.com'),
    'max_requests' => env('QUOTES_MAX_REQUESTS'),
    'time_window' => env('QUOTES_TIME_WINDOW'),
    'time_before_next_request' => env('QUOTES_TIME_BEFORE_NEXT_REQUEST'),
];
```

To ensure the configuration works correctly, you need to add the following environment variables to your main .env file located in the root of your project:

```
QUOTES_API_URL=https://dummyjson.com
QUOTES_MAX_REQUESTS=
QUOTES_TIME_WINDOW=
QUOTES_TIME_BEFORE_NEXT_REQUEST=
```

#### **QUOTES\_MAX\_REQUESTS**

[](#quotes_max_requests)

Sets the maximum number of requests that can be made to the API in a given period of time.

#### **QUOTES\_TIME\_WINDOW**

[](#quotes_time_window)

Defines the period of time ***(in seconds)*** during which a specific number of requests, as defined by max\_requests, are allowed to be made.

#### **QUOTES\_TIME\_BEFORE\_NEXT\_REQUEST**

[](#quotes_time_before_next_request)

Specifies the amount of time ***(in seconds)*** that must elapse before another request can be made to the API after the max\_requests limit has been reached.

Basic Usage
-----------

[](#basic-usage)

### Run the application

[](#run-the-application)

```
php artisan serve
```

### Access the application in your browser

[](#access-the-application-in-your-browser)

Open  in your web browser.

### Using the API

[](#using-the-api)

The package exposes the following API endpoints:

```
GET /api/quotes              # Get paginated quotes
GET /api/quotes/{id}         # Get a specific quote
GET /api/quotes/random       # Get a random quote

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance46

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4183182f0a21e939047c4b3c0e54c244107e3780dbc4e1d614017ba3c880ba5d?d=identicon)[jssmntll](/maintainers/jssmntll)

---

Top Contributors

[![jssmntll](https://avatars.githubusercontent.com/u/38013203?v=4)](https://github.com/jssmntll "jssmntll (1 commits)")

### Embed Badge

![Health badge](/badges/jssmntll-quotes-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/jssmntll-quotes-laravel/health.svg)](https://phpackages.com/packages/jssmntll-quotes-laravel)
```

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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