定制 corviz/database-layer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

corviz/database-layer

Composer 安装命令:

composer require corviz/database-layer

包简介

Standalone library for database interaction

README 文档

README

Corviz database layer provides a simple yet powerful interface to run your database operations.

We use Hydrahon query builder as it's base components, extending it with a Model. It means that all operations included in their library will be avaliable for your models as well.

Installation

composer require corviz/database-layer

Features

  • Simple to use query builder
  • Database interface (binding, native queries, transactions, db function execution, etc...)
  • Base model that features mutators, accessors and CRUD operations...
  • Mass objects creation

And more coming soon!

Have a taste:

Example 1 - Fetch active users:

$users = User::query()->where('active', true)->get();

foreach ($users as $user) {
    echo $user->id, ' - ', $user->email;
}

Example 2 - Create and save a contact:

$contact = new Contact();
$contact->name =  'John';
$contact->phone = '+1 (999) 999-9999';
$contact->insert(); 

Example 3 - Create messages in the messages table:

Message::create([
    [
        'message' => 'This is an warning message',
        'level' => 'warning'
    ],
    [
        'message' => 'This is an info message',
        'level' => 'info'
    ]
]);

See complete documentation...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固