承接 tschallacka/storm-database 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tschallacka/storm-database

Composer 安装命令:

composer require tschallacka/storm-database

包简介

The WinterCMS Storm library but only the database features

README 文档

README

This is a individual fork of the Storm Library for WinterCMS that adds solely the database features and removes the rest of the features that that library offers.

This way you can have a lean library for snazzy database models in independent projects, without needing all the other wintercms dependent features that the storm library offers.

For documentation refer to [https://wintercms.com/docs/database/model]

To test this library run composer test.

If you wish to contribute consider contributing to the winter storm library.

Currently this uses a branch for migrating to laravel 8 in a newer version, but this will follow the main branch when laravel 8 integration is achieved.

Installation

composer require tschallacka/storm-database

Usage

Somewhere in your application boot up or at the location where you wish to use it, you'll most likely need to initialize the Eloquent connection manager. You can use something like the snippet below.

$db_conf = require('path/to/config/database.php');
$manager = new \Winter\Storm\Database\Capsule\Manager();
foreach($db_conf as $name => $config)
{
    $manager->addConnection($config, $name);
}
$manager->bootEloquent();

Use the WinterCMS documentation to see which configuration details are accepted, or review the Laravel documentation

Contributing

Run the command composer update-from-source to update the files from the source.
Currently it pulls from my private branch on https://github.com/tschallacka/storm/tree/remove_helper_calls

Feel free to modify bin/sync.sh to suit your needs.

Libraries using this to inject Eloquent in non Eloquent frameworks

Magento

Mage Storm Registers as a plugin within Magento 2.4 and then reads the app/etc/env.php file to glean the communication details so easy Eloquent access is possible within Magento 2.4

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固