定制 n5s/local-bin 二次开发

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

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

n5s/local-bin

最新稳定版本:1.1.3

Composer 安装命令:

composer require n5s/local-bin

包简介

Base class for providing the right binary depending of your platform.

README 文档

README

Base class for providing the right binary depending of your platform.

Install

composer require n5s/local-bin

Usage

Extend the base n5s\LocalBin\AbstractBinary class with your binary name:

use n5s\LocalBin\AbstractBinary;

class MyBinary extends AbstractBinary {
}

Set the class name to your binary name (e.g. JpegOptim -> jpegoptim) for less verbose code or override the getName static method.

Place the binary files for all supported platform inside the bin folder, at the root of your package, following this folder tree:

├── bin
│   ├── darwin
│   │   └── mybinary
│   ├── linux
│   │   ├── x64
│   │   │   └── mybinary
│   │   └── x86
│   │       └── mybinary
│   └── windows
│       ├── x64
│       │   └── mybinary.exe
│       └── x86
│           └── mybinary.exe

Get the path of your binary using:

$bin = MyBinary::getPath();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-06-25