承接 xsuchy09/neon2db 相关项目开发

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

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

xsuchy09/neon2db

Composer 安装命令:

composer require xsuchy09/neon2db

包简介

Library to save data from neon file into the database.

README 文档

README

Library to save data from neon file to the database and back to the neon file. It can be helpful for managing translates in the database for Kdyby/Translation.

Install

composer require xsuchy09/neon2db

Usage

$connection = new \Nette\Database\Connection('dsn', 'user', 'password');
$configuration = new \xsuchy09\Neon2Db\DI\Configuration();
$configuration->setTable('public.translation');

$neon2Database = new \xsuchy09\Neon2Db\Neon2Database($connection, $configuration);
// neon files should be named as name of the file dot locale dot neon - examples:
// admin.cs_CZ.neon
// base.cs_CZ.neon
// ...

// these files you have probably as default in git
$neon2Database->insertFromDir('path to the dir with neon files to import into the database');
// these files should use your app ... they should be regenerate after any update in database - use this method to re/generate them
$neon2Database->saveToNeon('path to the dir where files from database data should be exported');

That's all :)

Any comments and pull requests are welcome.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2020-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固