limanmys/toolkit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

limanmys/toolkit

最新稳定版本:2.0.0

Composer 安装命令:

composer require limanmys/toolkit

包简介

Toolkit is a library that provides various helpers and classes to make the development of liman extensions easier.

README 文档

README

Toolkit is a library that provides various helpers and classes to make the development of Liman extensions easier.

Toolkit, Liman eklentilerinin geliştirilmesini kolaylaştırmak için çeşitli yardımcılar ve sınıflar sağlayan bir kütüphanedir.

Examples / Örnekler

Distro

use Liman\Toolkit\OS\Distro;
Distro::debian('apt install nano -y')
    ->centos('yum install nano -y')
    ->runSudo();
Distro::debian("echo 'debian'")
    ->centos("echo 'centos'")
    ->centos6("echo 'centos6'")
    ->centos7("echo 'centos7'")
    ->pardus19("echo 'pardus19'")
    ->pardus192("echo 'pardus19.2'")
    ->pardus193("echo 'pardus19.3'")
    ->ubuntu("echo 'ubuntu'")
    ->ubuntu1804("echo 'ubuntu18.04'")
    ->ubuntu2004("echo 'ubuntu20.04'")
    ->ubuntu2010("echo 'ubuntu20.10'")
    ->default("echo 'Hiçbiri değil'")
    ->run();

Command

use Liman\Toolkit\Shell\Command;
echo Command::run('hostname');
Command::runSudo('hostnamectl set-hostname @{:hostname}', [
    'hostname' => request('hostname')
]);
use Liman\Toolkit\Shell\SSHEngine;
SSHEngine::init(
    request('ipAddress'),
    request('username'),
    request('password')
);
Command::bindEngine(SSHEngine::class);
echo Command::run('hostname');

Formatter

use Liman\Toolkit\Formatter;
echo Formatter::run('hostnamectl set-hostname @{:hostname}', [
    'hostname' => request('hostname')
]);

//output: hostnamectl set-hostname pardus

Validation

Documantation/Dökümantasyon

validate([
    'hostname' => 'required|string'
]);

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-09