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
其他信息
- 授权协议: Unknown
- 更新时间: 2024-06-25