maharder/postgresql-orm
Composer 安装命令:
composer require maharder/postgresql-orm
包简介
PostgreSQL ORM Class for plain uses without models
README 文档
README
PostgreSQL ORM Class
I was looking for a class that works with postgres but doesn't required to create and manage models. Only for transactions.
This class uses the PHP PDO connection, so you have to enable pdo_pgsql in your php.ini. While I was writing this class I used PHP version 7.2. I recommend this version or a higher one.
It was my first commit to packagist so if some issues are encountered please let me know.
Documentation
Namespaces
MaHarder
Classes
| Class | Description |
|---|---|
PostgreSQL |
PostgreSQL Class. |
Usage
$postgresql = new PostgreSQL('database', 'user', 'password', 'localhost', 5432);
Standalone
Download latest release and extract it.
Either you include it with include_once (__DIR__ . '/classes/PostgreSQL.php); or call a use for it use MaHarder\classes\PostgreSQL;
If you change the paths, so use the include
Composer
Run
composer require maharder/postgresql-orm
Now you can use the class
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-13