Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-purity

> 后端框架
Open source

An elegant way to filter and sort queries in Laravel

517 stars0 likes3 views
WebsiteGitHub

About

An elegant way to filter and sort queries in Laravel

Elegant way to filter and sort queries in Laravel Laravel Purity is an elegant and yet simple filtering and sorting package for Laravel, designed to simplify complex data filtering and sorting logic for eloquent queries. By simply adding filter() to your Eloquent query, you can add the ability for frontend users to apply filters based on URL query string parameters like a breeze.

How Does Purity Work?

Here is a basic usage example to clarify Purity's use case.

Add filter() to your query.

php
$posts = Post::filter()->get();

That's it! Now you can filter your posts by adding query string parameters to the URL.

GET /api/posts?filters[title][$contains]=Purity

read more at official documentations

Documentation

https://abbasudo.github.io/laravel-purity/

License

Laravel Purity is Licensed under The MIT License (MIT). Please see License File for more information.

Security

If you've found a bug regarding security, please mail [email protected] instead of using the issue tracker.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPeloquentfilterfilteringfilters

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架