More Premium Hugo Themes Premium Vue Themes

Laravel Purity

An elegant way to filter and sort queries in Laravel

Laravel Purity

An elegant way to filter and sort queries in Laravel

Author Avatar Theme by abbasudo
Github Stars Github Stars: 501
Last Commit Last Commit: Mar 9, 2025 -
First Commit Created: Aug 27, 2024 -
default image

Overview:

Laravel Purity is a filtering and sorting package designed for Laravel, offering a solution to simplify the process of filtering and sorting data in Eloquent queries. By introducing the filter() function to Eloquent queries, users can easily implement filtering based on URL query string parameters.

Features:

  • Elegant Filtering: Simplifies complex data filtering logic.
  • Sorting Functionality: Provides easy sorting options for Eloquent queries.
  • URL Query Parameters: Allows users to apply filters using URL query string parameters.
  • Security Guidelines: Provides a contact email for reporting security bugs.

Installation:

To install Laravel Purity, follow these steps:

  1. Run the following composer command in your Laravel project directory:
composer require abbasudo/laravel-purity
  1. Once installation is complete, you can start using Purity by adding the filter() function to your Eloquent queries.

Summary:

Laravel Purity is a valuable package for Laravel developers looking to streamline the filtering and sorting process in their applications. With its simple implementation and ability to utilize URL query string parameters for filtering, Purity offers a convenient solution for managing complex data queries. Additionally, the package provides security guidelines for reporting any potential security issues, highlighting its commitment to user safety.