padcmoi/vue-bootstrap-utils-for-php-api
Composer 安装命令:
composer require padcmoi/vue-bootstrap-utils-for-php-api
包简介
Pack de classes backend pour application cliente VueJS avec plugin Bootstrap
README 文档
README
➡️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
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
<?php namespace App\Application\Manager\Desires; use App\Application\Manager\Desires\Misc\DesireExtends; use App\Application\Manager\ResponseManager; use Padcmoi\VueBootstrap\VueBS4Table; class DesiresList extends DesireExtends { const SELECTOR = [ "t1.id", "t1.created_at", "t2.nom", "t3.libelle", "t1.complement", "t1.date", "t1.moment", "t1.date_choisie", "t1.destinataire_proposition", "t1.etat", ], ORDER_BY = [ "id", "created_at", "nom", "libelle", "complement", "date", "moment", "date_choisie", "destinataire_proposition", "etat", ], SEARCHS_FILTER = ["t1.id", "t2.nom", "t3.libelle", "t1.complement", "t1.date", "t1.date_choisie"]; /** * Affiche les items * @param {array/NULL} provient de SLIM * * @void */ public static function items($args = null) { VueBS4Table::distinct(true); // Ajoute dans la requete DISTINCT apres SELECT, par défaut désactivé ResponseManager::add(['desires_list' => VueBS4Table::easyItems('envie AS t1 LEFT JOIN utilisateur AS t2 ON(t1.utilisateur=t2.id) LEFT JOIN activite AS t3 ON(t1.activite=t3.id)', [ 'args' => $args, 'selector' => self::SELECTOR, 'orderBy' => self::ORDER_BY, 'searchFilter' => self::SEARCHS_FILTER, ]), ]); } }
➡️Others
🧳Packagist
https://packagist.org/packages/padcmoi/vue-bootstrap-utils-for-php-api
🔖Licence
Ce travail est sous licence MIT.
🔥Pour me contacter sur discord
Lien discord discord.gg/257rUb9
🍺Si vous souhaitez m’offrir un pourboire
Me faire un don 😍 par Paypal
padcmoi/vue-bootstrap-utils-for-php-api 适用场景与选型建议
padcmoi/vue-bootstrap-utils-for-php-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 31 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 12 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「bootstrap」 「vuejs」 「utils-library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 padcmoi/vue-bootstrap-utils-for-php-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 padcmoi/vue-bootstrap-utils-for-php-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 padcmoi/vue-bootstrap-utils-for-php-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Selectize Theme for Bootstrap 4
Alfabank REST API integration
Cross browser time implementation using CSS and JQuery. Compatible with Twitter Bootstrap
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-05