PHPackages                             padcmoi/vue-bootstrap-utils-for-php-api - 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. padcmoi/vue-bootstrap-utils-for-php-api

ActiveLibrary[API Development](/categories/api)

padcmoi/vue-bootstrap-utils-for-php-api
=======================================

Pack de classes backend pour application cliente VueJS avec plugin Bootstrap

1.0.2(4y ago)031MITPHPPHP ^7.2

Since Dec 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/padcmoi/vue-bootstrap-utils-for-php-api)[ Packagist](https://packagist.org/packages/padcmoi/vue-bootstrap-utils-for-php-api)[ RSS](/packages/padcmoi-vue-bootstrap-utils-for-php-api/feed)WikiDiscussions main Synced 1mo ago

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

Component VueBootstrap for PHP frameworks
=========================================

[](#component-vuebootstrap-for-php-frameworks)

➡️Install
=========

[](#️install)

```
composer require padcmoi/vue-bootstrap-utils-for-php-api

```

to add in .env file

```
DB_HOSTNAME='localhost'
DB_USERNAME='***USER***'
DB_PASSWORD='***PASS***'
DB_DATABASE='***BDD****'
```

➡️Usage
=======

[](#️usage)

Example Usage in a project

```
use Padcmoi\VueBootstrap\VueBS4Table;

class Table
{
    protected static function items($args = null)
    {
        $SELECTOR = ["id", "created_at", "username"];
        $SEARCHS_FILTER = ["id", "created_at", "username"];

        $extended_selector = ""; // pour ajouter des fonctions SQL

        return VueBS4Table::easyItems('users', [
            'args' => $args,
            'selector' => $SELECTOR,
            'orderBy' => $SELECTOR,
            'searchFilter' => $SEARCHS_FILTER,
            'add_before_where' => [
                'key' => 'id',
                'comparaison' => '>=',
                'bind' => ':bind',
                'value' => '197',
            ]
        ]);
    }
}
```

Example Usage with 2 SQL Join in a project and Distinct mode

```
