PHPackages                             mariale098/quotes - 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. [API Development](/categories/api)
4. /
5. mariale098/quotes

ActiveLibrary[API Development](/categories/api)

mariale098/quotes
=================

A Laravel package for interacting with the DummyJSON Quotes API

v1.0.0(1y ago)02MITBladePHP ^8.2

Since Apr 29Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (10)Versions (2)Used By (0)

Mariale098 Quotes Package
=========================

[](#mariale098-quotes-package)

A Laravel package for interacting with the DummyJSON Quotes API. This package provides a simple way to fetch and display quotes with caching and rate limiting.

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

[](#installation)

1. Create a new Laravel project:

```
composer create-project laravel/laravel [project-name]
```

2. Install the package via Composer:

```
composer require mariale098/quotes
```

3. Publish the configuration file:

```
php artisan vendor:publish --provider="Mariale098\Quotes\QuotesServiceProvider" --tag="config"
```

4. Publish the assets:

```
php artisan vendor:publish --provider="Mariale098\Quotes\QuotesServiceProvider" --tag="assets"
```

5. Publish the quotes-styles:

```
php artisan vendor:publish --provider="Mariale098\Quotes\QuotesServiceProvider" --tag="quotes-styles" --force
```

6. Configure your Laravel project's `.env` file with the following settings:

```
# Session Configuration
SESSION_DRIVER=file
# This setting stores session data in files, which is required for the quotes package to work properly

# Cache Configuration
CACHE_STORE=file
# This setting enables file-based caching for storing quotes data

# Queue Configuration
QUEUE_CONNECTION=sync
# This setting ensures that quote operations are processed synchronously
```

These settings are essential for the proper functioning of the quotes package, as they:

- Enable session management for user interactions
- Provide caching capabilities for API responses
- Ensure synchronous processing of quote operations

Usage
-----

[](#usage)

### API Endpoints

[](#api-endpoints)

The package provides the following API endpoints:

- `GET /api/quotes/random` - Fetches a random quote from the API
- `GET /api/quotes` - Retrieves a paginated list of quotes (supports `limit` and `skip` parameters)
- `GET /api/quotes/{id}` - Gets a specific quote by its ID

### Vue Component Integration

[](#vue-component-integration)

The package includes a Vue.js component for displaying quotes. Follow these steps to integrate it into your application:

7. Update your `welcome.blade.php` view to include the Vue app container and necessary assets:

```
>

        Laravel Quotes
        @vite(['resources/css/app.css'])

        @vite(['resources/js/app.js'])

```

8. Import and mount the component in your `resources/js/app.js`:

```
import { createApp } from 'vue';
import QuotesComponent from './components/QuotesComponent.vue';

createApp(QuotesComponent).mount("#app");
```

9. Configure Vite by updating your `vite.config.js`:

```
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import tailwindcss from '@tailwindcss/vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
    plugins: [
        laravel({
            input: ['resources/css/app.css', 'resources/js/app.js'],
            refresh: true,
        }),
        tailwindcss(),
        vue(),
    ],
});
```

10. Install Vue.js dependencies and build the assets:

```
npm install @vitejs/plugin-vue vue
npm run build
```

11. Start the Laravel development server to test your application:

```
php artisan serve
```

Features
--------

[](#features)

- **Random Quote Display**: Shows a random quote that changes on page reload
- **Quote Search**: Search for quotes by their ID
- **Paginated Quotes List**: Browse through quotes with pagination
- **Error Handling**: User-friendly error messages
- **Responsive Design**: Mobile-friendly interface
- **Caching**: Built-in caching for API responses
- **Rate Limiting**: Protection against API abuse

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

[](#configuration)

Customize the package behavior by modifying the `config/quotes.php` file:

```
return [
    'cache_ttl' => 3600, // Cache time in seconds (1 hour)
    'rate_limit' => [
        'enabled' => true,
        'max_attempts' => 50, // Maximum API calls per minute
        'decay_minutes' => 1,
    ],
];
```

Author
------

[](#author)

Maria Alejandra Garcia Raiola ()

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance49

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5860fe18148fe651daa7dd5d0aa33277526c726c4a80163de38f4d55d70747e5?d=identicon)[Mariale098](/maintainers/Mariale098)

---

Tags

apilaravelquotesdummyjson

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[vahidkaargar/bamboo-card-portal

This is Bamboocardportal.com package

162.0k](/packages/vahidkaargar-bamboo-card-portal)

PHPackages © 2026

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