定制 laswitchtech/php-updater 二次开发

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

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

laswitchtech/php-updater

最新稳定版本:v1.0.0

Composer 安装命令:

composer require laswitchtech/php-updater

包简介

Updater Library for PHP Applications. Using GitHub Repository as the source.

README 文档

README

GitHub repo logo

phpUpdater

License GitHub repo size GitHub top language Version

Description

phpUpdater is a Library for PHP Applications. Using GitHub Repository as the source, it allows you to use releases as updates for your application.

Features

  • Support for private repositories
  • Easy to use
  • Provides Backup and restore functionnalities
  • Simple upgrade method
  • Integration with phpDB

Why you might need it?

Can I use this?

Sure!

License

This software is distributed under the MIT license. Please read LICENSE for information on the software availability and distribution.

Requirements

  • PHP >= 5.5.0
  • GitHub Repository
  • GitHub Access Token

To Do

  • Add support for public repositories

Security

Please disclose any vulnerabilities found responsibly – report security issues to the maintainers privately.

Installation

Using Composer:

composer require laswitchtech/php-database

How do I use it?

Here is a full example:

<?php

// Import phpUpdater class into the global namespace
// These must be at the top of your script, not inside a function
use LaswitchTech\phpUpdater\phpUpdater;

// Load Composer's autoloader
require 'vendor/autoload.php';

// Configure phpUpdater, you can also use a config file
$phpUpdater->config("owner","GITHUB_USERNAME")->config("repository","GITHUB_REPOSITORY")->config("token","GITHUB_ACCESS_TOKEN");

// Initialize Updater
$phpUpdater = new phpUpdater();

// Backup
$phpUpdater->backup();

// Restore
$phpUpdater->restore();

// Upgrade
$phpUpdater->upgrade();

统计信息

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

GitHub 信息

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

其他信息

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