n5s/local-bin 问题修复 & 功能扩展

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

邮箱: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.59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 19
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固