nzn1/php-pdo-class 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nzn1/php-pdo-class

最新稳定版本:v1.3

Composer 安装命令:

composer require nzn1/php-pdo-class

包简介

Simple PDO Class

README 文档

README

This class is a very simple class made for programmers who are tired of using quotes to escape string from being read as constants or receiving syntax errors. This class will allow you to call different databases on different variables as well as allowing you to define values in an array as the second parameter of a function.

Calling a new class and setting the parameters for authentication

Calling class on variable $db (this can be any variable name). Find construction calls below in order:

  • Database host address
  • Username for authentication
  • Password for authentication
  • Database name

Please note: the data array is NOT required. All question marks (?) found in the query will be replaced with the data (in order) found in the array of the second parameter. You do NOT need to use quotes as PDO sorts this out for you during query preperation.

use Nzn1\PhpPdoClass\Dbpdo;
$db = new Dbpdo("localhost", "root", "password", "database");

Installation

  • composer require nzn1/php-pdo-class
  • standard composer autoloading: require 'vendor/autoload.php';

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-06-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固