承接 tuijncode/version 相关项目开发

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

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

tuijncode/version

最新稳定版本:v2.2.1

Composer 安装命令:

composer require tuijncode/version

包简介

Version

README 文档

README

Total Downloads Latest Stable Version License

Html

With Version, you can retrieve various versions within your project, which is particularly useful if you have multiple projects and need to identify which ones require updates.

"Buy Me A Coffee"

Releases

Release PHP
v1.x 7.2.0
v2.x 8.1.0

Install

Install the package via Composer:

composer require tuijncode/version

Add your token to the .env file:

TUIJNCODE_VERSION_TOKEN="your-token"

Additionally, add the following components to the .env file if you want to check the database:

TUIJNCODE_VERSION_PDO_DSN="your-dsn"
TUIJNCODE_VERSION_PDO_USERNAME="your-username"
TUIJNCODE_VERSION_PDO_PASSWORD="your-password"

Use one of the following options for DSN:

Database Type DSN Format
MySQL/MariaDB mysql:host=localhost;dbname=your_database
PostgreSQL pgsql:host=localhost;dbname=your_database
SQLite sqlite:/path/to/database.db
SQL Server sqlsrv:Server=localhost;Database=your_database

Add the PHP file version.php:

<?php

require __DIR__ . '/vendor/autoload.php';

use Tuijncode\Version\RequestHandler;

$requestHandler = new RequestHandler();
$response = $requestHandler->handleRequest();
$response->send();
?>

Usage

https://example.com/version?token=your-token

Response (JSON)

{
    "status": "OK",
    "versions":
        {
            "webserver":
            {
                "name": "Apache",
                "version": "Apache\/2.4.58 (Unix) mod_wsgi\/4.9.4 Python\/3.11 mod_fastcgi\/mod_fastcgi-SNAP-0910052141 OpenSSL\/1.1.1u"
            },
            "database":
            {
                "name": "mysql",
                "version": "8.0.35"
            },
            "php":
            {
                "name": "cgi-fcgi",
                "version": "8.2.20"
            }
        }
}

Dashboard

Would you like to view all your projects in an online dashboard? We have successfully developed this solution and also offer installation support. https://davidvandertuijn.nl/oplossingen/versies

Html

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-23