PHPackages                             mikelmi/mks-smart-table - 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. [Database &amp; ORM](/categories/database)
4. /
5. mikelmi/mks-smart-table

ActiveLibrary[Database &amp; ORM](/categories/database)

mikelmi/mks-smart-table
=======================

Laravel Server-side processing for angular-smart-table

v2.1.1(9y ago)11012MITJavaScriptPHP &gt;=5.6.4

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mikelmi/mks-smart-table)[ Packagist](https://packagist.org/packages/mikelmi/mks-smart-table)[ RSS](/packages/mikelmi-mks-smart-table/feed)WikiDiscussions master Synced 1mo ago

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

Server side processing for angular-smart-table for Laravel 5
------------------------------------------------------------

[](#server-side-processing-for-angular-smart-table-for-laravel-5)

This package provides services for server-side processing data for [angular-smart-table](https://lorenzofox3.github.io/smart-table-website/)

### Installation

[](#installation)

1. Install via composer

    ```
        composer require mikelmi/mks-theme:dev-master

    ```
2. Add the service provider in `config/app.php`, to `providers`:

    ```
        Mikelmi\SmartTable\Providers\SmartTableServiceProvider::class,
    ```
3. Publish assets

    ```
        php artisan vendor:publish --provider="Mikelmi\SmartTable\Providers\SmartTableServiceProvider"

    ```

### Usage

[](#usage)

#### Server side

[](#server-side)

Create route for handling smart-table-request.

Inside the route:

1. Create data source. It can be Query Builder (Eloquent/Database) or Collection

    ```
    //Query Builder
    $source = \App\User::select(['id', 'name', 'email', 'created_at']);

    //or Collection
    $source = collect([
        ['id' => '1', 'name' => 'John Smith'],
        ['id' => '2', 'name' => 'Mister X'],
        //...
    ]);
    ```
2. Create SmartTable Engine instance

    ```
    $engine = app(\Mikelmi\SmartTable\SmartTable::class)->make($source);

    //optionaly set columns for general search
    $engine->setSearchColumns(['name', 'email'])
    ```
3. Apply request

    ```
    $engine->apply();

    //optionaly apply advanced method for your source, e.g. default sorting
    $engine->orderBy('created_at', 'desc');
    ```
4. Return the response

    ```
    return $engine->response();
    ```

#### Client side

[](#client-side)

1. Include javascript file. This package ships with three js files:

    - `mks-smart-table.js` - contains only base functionality, without any libraries
    - `mks-smart-table-st.js` - includes angular-smart-table
    - `mks-smart-table-full.js` - includes all required dependencies (angular 1.x and angular-smart-table)

    E.g. (in your template):

    ```
       ...

    ```
2. Add `mks-smart-table` dependency to your angular application. E.g.:

    ```
    var app = angular.module('myApp', ['mks-smart-table']);
    ```
3. Init controller TableCtrl

    ```

    ```
4. Output the table

    ```

               {[{row.id}]}
               {[{row.name}]}
               {[{row.email}]}
               {[{row.created_at}]}

    ```
5. Advanced features:

    - **Global search**

        You can add some input outside the table for filtering the results

        ```

        ```

        And then add `mst-watch-query` directive to the table head

        ```

        ```
    - **Select rows**

        ```

        ```
    - **'Select All' checkbox**

        ```

        ```
    - **TableCtrl functions**

        - `removeLocalRow(row)` - remove row without server-side action
        - `removeRow(row, url, confirmText)` - remove row after server-side action by url
        - `removeSelected(url, confirmText)` - remove selected rows after server-side action by url
        - `getSelected()` - get selected rows
        - `updateRow(row, url, confirmText)` - post row by url and update it with returned data
        - `updateSelected(url, confirmText)` - same as `updateRow` but works with array of selected rows

### Additional Info

[](#additional-info)

There is no styles for the tables in this package. You can [Twitter Bootstrap](http://getbootstrap.com/) for styling it.

Here  you can check the example of usage this package.

For more information about client-side implementation please visit the angular-smart-table site -

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~40 days

Recently: every ~47 days

Total

6

Last Release

3353d ago

Major Versions

v1.0 → 2.0.x-dev2017-01-27

PHP version history (2 changes)1.0.x-devPHP &gt;=5.5.9

v1.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3274b2686ddeffc3e0e880fafb33b1f59832aed3847fcd6b1a257a6d1e16ae8?d=identicon)[mikelmi](/maintainers/mikelmi)

---

Top Contributors

[![mikelmi](https://avatars.githubusercontent.com/u/1709033?v=4)](https://github.com/mikelmi "mikelmi (18 commits)")

---

Tags

laraveldatagridangularmkssmart-table

### Embed Badge

![Health badge](/badges/mikelmi-mks-smart-table/health.svg)

```
[![Health](https://phpackages.com/badges/mikelmi-mks-smart-table/health.svg)](https://phpackages.com/packages/mikelmi-mks-smart-table)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)

PHPackages © 2026

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