devphp-pmro / listing
标签选择字段中的数据列表,不进行格式化
1.0.0
2020-10-13 13:38 UTC
Requires
- ext-pdo: *
This package is not auto-updated.
Last update: 2024-09-26 06:04:25 UTC
README
#标签选择字段中的数据列表,不进行格式化
要安装库,请运行以下命令
composer require devphp-pmro/listing
要使用库,只需调用composer自动加载,调用类并调用方法
<?php open the Config.php file in the source folder and enter the credentials for connecting to the database //define the connection settings to the database for backup define("CONFIG",["host" => "host, "data_base" => "data_base", "user" => "user", "password" => "password", ); default port 3306 require __DIR__. '/vendor-dir/autoload.php'; use Source\_App\Listing; $selectAll = (new Listing())->selectAll("table","optionValue","visible"); $orderBy = (new Listing())->orderBy("table","optionValue","visible","order","desc"); // type is optional (asc or desc) $groupBy = (new Listing())->groupBy("table","optionValue","visible","groupBy"); // type is optional (asc or desc) $groupOrderBy = (new Listing())->groupOrderBy("table","optionValue","visible","orderBy","groupBy","type"); // type is optional (asc or desc)
开发者
- [Leonardo] - 本库的开发者!
- [devphp] - 官方网站:https://devphp-pmro.github.io/
许可协议
MIT