承接 xanobius/notion-notifier 相关项目开发

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

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

xanobius/notion-notifier

最新稳定版本:0.1.0

Composer 安装命令:

composer require xanobius/notion-notifier

包简介

Command to update notion.io information

README 文档

README

Keep all your projects and their version under control!

Notion-Notifier is a small package to submit the current versions to a notion page.

The aim is to update the version of the used framework (symfony, pimcore, laravel, drupal...) as well as the version of your codebase (git tag).

The package can be used agnostic or with a little more comfort in laravel.

Perparation

This package has list of project in mind, collected in a notion database. In a database, each entry is a distinct notion page with the properties of the database.

example table in notion

In this Example we would have the two columns FW-Version (Framework) and CB-Version (Code-Base) we want to populate on every update with the new, actual values. To update something, we must have something, meaning:

  • Notion account with a project database
  • Notion API Secret
  • The id of the notion page
  • The names of the page properties

Installation

Use the package manager composer to install notion-notifier.

composer require xanobius/notion-notifier

Usage (agnostic)

use Xanobius\NotionNotifier\NotionNotifier;

$notifier = new NotionNotifier;
$notifier->setPageId('[YOUR PAGE ID]');
$notifier->setNotionSecret('[YOUR NOTION SECRET]');

try{
    $notifier->updatePageValue('[PROPERTY NAME]', '[NEW VALUE]');
}catch(Exception $e){
    // do your error handling here
}

Usage in Laravel

Right after the installation, the .env file awaits your settings

NOTION_SECRET=
NOTION_PAGE_ID=
NOTION_LARAVEL_PROP=
NOTION_GIT_PROP=

with those options set, one can just call the command

php artisan notion-notifier:version

The command submits code-base and framework version to the specific properties and can be called after deployment. To change the behaviour of the package, the config can be published and adjusted to your needs.

sail artisan vendor:publish --provider="Xanobius\NotionNotifier\NotionNotifierServiceProvider" --tag="config"

Next steps...

Integration for symfony/pimcore projects with config as well.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固