devium/processes 问题修复 & 功能扩展

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

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

devium/processes

最新稳定版本:1.1.1

Composer 安装命令:

composer require devium/processes

包简介

This package is used to get a list of running processes on Windows or Unix-like systems, even Darwin

README 文档

README

Stand With Ukraine

devium/processes

Build status Latest Version License Downloads

This package is used to get a list of running processes on Windows or Unix-like systems, even Darwin.

Thanks to fastlist for processes on Windows.

Installation

composer require devium/processes

Usage

use Devium\Processes\Processes;

// some PID, integer
$pid = 1234;
// get all processes except both session leaders, default false
$all = true;

$processes = new Processes($all);
$exists = $processes->exists($pid); // returns true of false
$arrayOfProcesses = $processes->get(); // returns array of processes where key is PID

// for rescanning processes, call rescan() method
$newArrayOfProcesses = $processes->rescan()->get();

// if you only need an array of processes, just use the static asArray():
$listOfProcesses = Processes::asArray();

Structure of processes array

For windows

{
  "PID": {
    "pid": "integer",
    "ppid": "integer",
    "name": "string"
  }
}

For unix-like systems

{
  "PID": {
    "pid": "integer",
    "ppid": "integer",
    "name": "string",
    "uid": "integer",
    "cpu": "float",
    "memory": "float",
    "cmd": "string"
  }
}

Testing

composer test

License

devium/processes is open-sourced software licensed under the MIT license.

Vano Devium

Made with ❤️ in Ukraine

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固