PHPackages                             mrkacmaz/laravel-ssp - 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. [Search &amp; Filtering](/categories/search)
4. /
5. mrkacmaz/laravel-ssp

ActiveLibrary[Search &amp; Filtering](/categories/search)

mrkacmaz/laravel-ssp
====================

Process server-side processing (SSP) for an Eloquent model, supporting dynamic filtering, sorting, and pagination.

v0.1-beta(2y ago)00MITPHPPHP ^8.2

Since Apr 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MrKacmaz/laravel-ssp)[ Packagist](https://packagist.org/packages/mrkacmaz/laravel-ssp)[ RSS](/packages/mrkacmaz-laravel-ssp/feed)WikiDiscussions master Synced 1mo ago

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

Laravel SSP-INIT
================

[](#laravel-ssp-init)

SSP-INIT is a Laravel package designed to facilitate server-side processing (SSP) for Eloquent models, supporting dynamic filtering, sorting, and pagination. This package simplifies the development of data-intensive applications by abstracting complex server-side operations.

Features
--------

[](#features)

- **Dynamic Filtering**: Apply filters based on request parameters.
- **Sorting**: Sort data by any model attribute.
- **Pagination**: Efficiently paginate the data based on the client's request.
- **Eager Loading**: Supports eager loading of relationships to optimize query performance.
- **Response Encoding**: Optionally encode the response data.

Requirements
------------

[](#requirements)

- PHP ^8.2
- Laravel ^8.0

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

[](#installation)

To install the SSP-INIT package, run the following command in the root of your Laravel project:

```
composer require mrkacmaz/laravel-ssp
```

Usage
-----

[](#usage)

Here is a basic example of how to use the SSP trait in a Laravel controller:

### Controller

[](#controller)

```
